Conditionally use -D_POSIX_C_SOURCE=200809L for Linux only for now.
authorDavid Griffith <dave@661.org>
Wed, 4 Sep 2019 21:42:38 +0000 (14:42 -0700)
committerDavid Griffith <dave@661.org>
Wed, 4 Sep 2019 21:42:38 +0000 (14:42 -0700)
I don't know why this was causing problems for FreeBSD.

Makefile

index f123745edcad095f5950b00aa3c9386a2842d76b..a2089622d7b4fc6be321b220a8117d7593a67a3f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,13 +32,11 @@ ifneq ($(OS),Windows_NT)
        SDL_LDFLAGS += -lexecinfo
     endif
     ifeq ($(UNAME_S),Linux)
+       CFLAGS += -D_POSIX_C_SOURCE=200809L
        NPROCS = $(shell grep -c ^processor /proc/cpuinfo)
     endif
 endif
 
-# strdup, strndup
-# put this somewhere else
-#CFLAGS += -D_POSIX_C_SOURCE=200809L
 
 # Define your optimization flags.
 #