--- Make.settings.in.org	2009-11-04 20:34:56.000000000 -0600
+++ Make.settings.in	2011-07-30 13:56:03.000000000 -0500
@@ -26,13 +26,14 @@
   LIBDIR  = lib64
 else
   LIBDIR  = lib
+endif
 
-  ifeq ($(shell uname -s),Darwin)
+ifeq ($(shell uname -s),Darwin)
     DARWIN = 1
     PATH = $(shell getconf PATH):/usr/local/bin:/opt/local/bin:/sw/bin
     export PATH
     LIBDIR  = lib
-    CFLAGS += -fPIC
+    CFLAGS += -fPIC -std=gnu99
     CPPFLAGS += -I/usr/local/include -I/usr/include -I/opt/local/include -I/sw/include
     LDFLAGS += -L/usr/local/lib -L/usr/lib -L/opt/local/lib -L/sw/lib -framework CoreFoundation -framework IOKit
     # Python needs .so but library should be .dylib
@@ -40,5 +41,4 @@
     LIBNAME=libiguanaIR.dylib
     SHAREARG = -dynamiclib
     OSSUPPORT = daemonosx.o
-  endif
 endif
