From 4bd7166597615175bc539fab4243a5d5836aa651 Mon Sep 17 00:00:00 2001 From: "Jonah H. Harris" Date: Tue, 6 Mar 2018 19:13:54 -0500 Subject: [PATCH] Removed -D_POSIX_SOURCE from CFLAGS for OS X --- configure | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 0629724..750a14a 100755 --- a/configure +++ b/configure @@ -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