minor linux portability for buffered image writes
[dcpu16] / Makefile
index 70445ff8f27955f86faadebf6200ff1805748700..fdd94d25be26003fc452bc190786d4c7328dce0b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,9 @@ ifeq ($(UNAME),Darwin)
 CPPFLAGS += -DHAVE_FUNOPEN
 endif
 ifeq ($(UNAME),Linux)
-CPPFLAGS += -DHAVE_FOPENCOOKIE -D_XOPEN_SOURCE=600
+# linux needs _GNU_SOURCE for fopencookie
+# linux needs _XOPEN_SOURCE=600 (provided by _GNU_SOURCE) for getopt and strdup
+CPPFLAGS += -DHAVE_FOPENCOOKIE -D_GNU_SOURCE
 endif