aboutsummaryrefslogtreecommitdiff
path: root/libOSC
diff options
context:
space:
mode:
Diffstat (limited to 'libOSC')
-rw-r--r--libOSC/Makefile5
-rw-r--r--libOSC/OSC-client.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/libOSC/Makefile b/libOSC/Makefile
index 6261b37..fb21a26 100644
--- a/libOSC/Makefile
+++ b/libOSC/Makefile
@@ -1,4 +1,5 @@
-CFLAGS= -O2
+CFLAGS= -O2 -Wall
+DEFS= -Dunix
LIB=libOSC.a
LIBOBJS= ${LIB}(OSC-client.o) ${LIB}(OSC-timetag.o)
@@ -6,7 +7,7 @@ LIBOBJS= ${LIB}(OSC-client.o) ${LIB}(OSC-timetag.o)
all: ${LIBOBJS}
.c.a:
- ${CC} -c ${CFLAGS} $<
+ ${CC} -c ${CFLAGS} ${DEFS} $<
${AR} ${ARFLAGS} $@ $*.o
rm -f $*.o
diff --git a/libOSC/OSC-client.c b/libOSC/OSC-client.c
index 27b07d0..2024d34 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 unix
+ #include <netinet/in.h>
+ #include <stdio.h>
+#endif
#include "OSC-client.h"