From: Bill Lash Date: Wed, 30 Jan 2019 23:20:37 +0000 (-0600) Subject: Add CFLAGS for compiling on OS/X X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=1598bd8feed9bbf558027692d27d7e93727a5a3d;p=liskon_frotz.git Add CFLAGS for compiling on OS/X Added (commented out_ CFLAGS to enable compilation on MAC OSX. Also added a short paragraph to the INSTALL with a pointer to the Makefile --- diff --git a/INSTALL b/INSTALL index b65bf3d..1517990 100644 --- a/INSTALL +++ b/INSTALL @@ -36,6 +36,9 @@ curses. You can download ncurses from ftp://ftp.gnu/org/gnu/ncurses/. If you insist on using the vendor-supplied curses library, see the platform-specific info below. +For MAC OS/X users, check the Makefile, and uncomment the line that +adds the "-D_DARWIN_SOURCE" and "-D_XOPEN_SOURCE=600" CFLAGS. + It's always a good idea to have the GNU version of make(1) around. diff --git a/Makefile b/Makefile index ea7edab..bdfdb32 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ CC=gcc # Enable compiler warnings. This is an absolute minimum. CFLAGS += -Wall -std=c99 #-Wextra +# If compiling on OS/X add the following +# CFLAGS += -D_DARWIN_C_SOURCE -_XOPEN_SOURCE=600 + # strdup, strndup CFLAGS += -D_POSIX_C_SOURCE=200809L