aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-25 21:40:31 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-25 21:40:31 -0800
commita9e81c87a7b2a203c2bd4f310f936af46ef42fc1 (patch)
tree02d610d01216ca4680a846e1aa330c275d27549d /src
parente88f07b434dbcfdb57435a14e1beadcdae3cef0d (diff)
downloadnng-a9e81c87a7b2a203c2bd4f310f936af46ef42fc1.tar.gz
nng-a9e81c87a7b2a203c2bd4f310f936af46ef42fc1.tar.bz2
nng-a9e81c87a7b2a203c2bd4f310f936af46ef42fc1.zip
Fix for SunOS/illumos.
Diffstat (limited to 'src')
-rw-r--r--src/platform/posix/posix_ipc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/posix/posix_ipc.c b/src/platform/posix/posix_ipc.c
index fd69e1a7..7a9c6d52 100644
--- a/src/platform/posix/posix_ipc.c
+++ b/src/platform/posix/posix_ipc.c
@@ -23,6 +23,11 @@
#include <unistd.h>
#include <netdb.h>
+// Solaris/SunOS systems define this, which collides with our symbol
+// names. Just undefine it now.
+#ifdef sun
+#undef sun
+#endif
#ifdef SOCK_CLOEXEC
#define NNI_IPC_SOCKTYPE (SOCK_STREAM | SOCK_CLOEXEC)