aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--streamin13~.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5c906ce..9197c9e 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ ifeq ($(UNAME),Darwin)
SOURCES +=
EXTENSION = pd_darwin
OS = macosx
- CFLAGS += -DUNIX -fPIC
+ CFLAGS += -fPIC
OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast
LDFLAGS += -bundle -undefined dynamic_lookup
LIBS += -lc
@@ -26,7 +26,7 @@ ifeq ($(UNAME),Linux)
EXTENSION = pd_linux
OS = linux
OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
- CFLAGS += -DUNIX -fPIC
+ CFLAGS += -fPIC
LDFLAGS += -Wl,--export-dynamic -shared -fPIC
LIBS += -lc
STRIP = strip --strip-unneeded -R .note -R .comment
diff --git a/streamin13~.c b/streamin13~.c
index d0d7529..3eaac24 100644
--- a/streamin13~.c
+++ b/streamin13~.c
@@ -107,7 +107,7 @@ static int streamin13_listen(t_streamin13 *x,int portno)
server.sin_family = AF_INET;
server.sin_addr.s_addr = INADDR_ANY;
- #if defined(UNIX) || defined(unix)
+ #if defined(__linux__) || defined(__APPLE__)
if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0)
post("setsockopt failed\n");
#endif