Skip to content

Commit

Permalink
Removed -D_POSIX_SOURCE from CFLAGS for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahharris committed Mar 7, 2018
1 parent 95fab56 commit 4bd7166
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ echo Checking for gcc
# typhoon uses a mixture of POSIX, BSD and System V interfaces
#

STANDARDS="-D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE"
OS=$(uname -s)
case $OS in
'Darwin')
STANDARDS="-D_BSD_SOURCE -D_SVID_SOURCE"
;;
*)
STANDARDS="-D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE"
;;
esac

if type gcc >/dev/null 2>/dev/null ; then
CC=gcc
Expand Down

0 comments on commit 4bd7166

Please sign in to comment.