X-Git-Url: http://git.squeep.com/?p=dcpu16;a=blobdiff_plain;f=Makefile;h=fdd94d25be26003fc452bc190786d4c7328dce0b;hp=70445ff8f27955f86faadebf6200ff1805748700;hb=db943a12b03f048f4f135c38a96e9ee0aa3c7a48;hpb=4185a67f55fb99f34f013b939a8ef9e13454c1e5 diff --git a/Makefile b/Makefile index 70445ff..fdd94d2 100644 --- 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