aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>