diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-25 21:40:31 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-25 21:40:31 -0800 |
| commit | a9e81c87a7b2a203c2bd4f310f936af46ef42fc1 (patch) | |
| tree | 02d610d01216ca4680a846e1aa330c275d27549d /src | |
| parent | e88f07b434dbcfdb57435a14e1beadcdae3cef0d (diff) | |
| download | nng-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.c | 5 |
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) |
