aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/loader.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e8c43e1..39ffdc7 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ MUTE := @
endif
CFLAGS ?= -W -Wall -pedantic -Wmissing-prototypes
-CFLAGS += -std=c99 $(shell sdl2-config --cflags)
+CFLAGS += -std=c99 $(shell sdl2-config --cflags) -D_XOPEN_SOURCE=700
LDFLAGS += $(shell sdl2-config --libs) -lfreeimage -lSDL2_ttf -lfontconfig -lpthread
BUILDDIR ?= build
diff --git a/src/loader.c b/src/loader.c
index 91d0d2f..0e7079e 100644
--- a/src/loader.c
+++ b/src/loader.c
@@ -19,6 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "texture.h"
#include <limits.h>
#include <stdlib.h>
+#include <string.h>
#include <pthread.h>
#include <signal.h>