aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdl <x75@users.sourceforge.net>2004-01-20 21:22:52 +0000
committerjdl <x75@users.sourceforge.net>2004-01-20 21:22:52 +0000
commit154eb0f577a3d1381d7116fc7e04c29b58314371 (patch)
tree22ab3369e4fa429d578c8a85453e179ad91e645f
parentbe8e3cba565ce252d6c073a811b18dd7b65092ec (diff)
MACOSX needs sys/types.h included ...
svn path=/trunk/externals/OSCx/; revision=1274
-rw-r--r--libOSC/Makefile3
-rw-r--r--libOSC/OSC-client.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/libOSC/Makefile b/libOSC/Makefile
index a47a4c9..1878be8 100644
--- a/libOSC/Makefile
+++ b/libOSC/Makefile
@@ -1,5 +1,8 @@
CFLAGS= -O2 -Wall -fPIC
+# uncomment the following for linux/win
DEFS= -Dunix
+# and this for osx
+# DEFS= -Dunix -DMACOSX
LIB=libOSC.a
LIBOBJS= ${LIB}(OSC-client.o) ${LIB}(OSC-timetag.o)
diff --git a/libOSC/OSC-client.c b/libOSC/OSC-client.c
index 2024d34..972aa52 100644
--- a/libOSC/OSC-client.c
+++ b/libOSC/OSC-client.c
@@ -64,6 +64,10 @@ University of California, Berkeley.
#include <sys/stat.h>
#endif
+#ifdef MACOSX
+ #include <sys/types.h>
+#endif
+
#ifdef unix
#include <netinet/in.h>
#include <stdio.h>