summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-16 07:05:21 +0200
committerAki <please@ignore.pl>2020-08-16 07:05:21 +0200
commit875a8c50057e5d8cae617f281b4d67c1cce22b34 (patch)
tree5d1b14a1cbf4449256c4659d80afcc02c7acd45c
parent0ccfb065377e60ca222390d9f25d82d1f9c1e5b2 (diff)
downloadplop-875a8c50057e5d8cae617f281b4d67c1cce22b34.zip
plop-875a8c50057e5d8cae617f281b4d67c1cce22b34.tar.gz
plop-875a8c50057e5d8cae617f281b4d67c1cce22b34.tar.bz2
Added posix_c_source definition to Makefile
-rw-r--r--Makefile2
-rw-r--r--request.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7a158c1..3aaef4a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS+=-Wall -Wextra -Wpedantic
+CFLAGS+=-std=c11 -Wall -Wextra -Wpedantic -D_POSIX_C_SOURCE=200809L
CFLAGS+=-I/usr/include/lua5.3
LDLIBS+=-llua5.3
PREFIX?=/usr/local
diff --git a/request.c b/request.c
index 11f734b..e6ee3bf 100644
--- a/request.c
+++ b/request.c
@@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <unistd.h>
#include <lauxlib.h>