diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-06-29 17:41:52 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-06-29 17:41:52 -0700 |
| commit | fa6c49708c1e4bbb2bb0b93f1dbce6887cfb2193 (patch) | |
| tree | 394c40b184f803aa84b8f07960d4d06aee7800f2 | |
| parent | f8ac106494444962788dc94e147bd33a3e8cdab6 (diff) | |
| download | nng-fa6c49708c1e4bbb2bb0b93f1dbce6887cfb2193.tar.gz nng-fa6c49708c1e4bbb2bb0b93f1dbce6887cfb2193.tar.bz2 nng-fa6c49708c1e4bbb2bb0b93f1dbce6887cfb2193.zip | |
Avoid Solaris / illumos namespace collision.
| -rw-r--r-- | src/platform/posix/posix_socket.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/platform/posix/posix_socket.c b/src/platform/posix/posix_socket.c index b50bd65f..843bbd1e 100644 --- a/src/platform/posix/posix_socket.c +++ b/src/platform/posix/posix_socket.c @@ -28,6 +28,13 @@ #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_STREAM_SOCKTYPE (SOCK_STREAM | SOCK_CLOEXEC) #else |
