projects
/
dcpu16
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor linux portability for buffered image writes
[dcpu16]
/
Makefile
diff --git
a/Makefile
b/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_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
endif