diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-21 20:18:27 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-21 20:18:27 -0800 |
| commit | ec709cc4a126b3938446e58c7cce4c026ede4d02 (patch) | |
| tree | 66c5714b5622d19a089fab309ee1506d29351690 /src/platform/posix/posix_sockaddr.c | |
| parent | ebcd44e81326baefa892743a2da28fa3d5aa680d (diff) | |
| download | nng-ec709cc4a126b3938446e58c7cce4c026ede4d02.tar.gz nng-ec709cc4a126b3938446e58c7cce4c026ede4d02.tar.bz2 nng-ec709cc4a126b3938446e58c7cce4c026ede4d02.zip | |
posix IPv6: BSD platforms us netinet6/in6.h
Diffstat (limited to 'src/platform/posix/posix_sockaddr.c')
| -rw-r--r-- | src/platform/posix/posix_sockaddr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/posix/posix_sockaddr.c b/src/platform/posix/posix_sockaddr.c index 888aa9d8..1906c78d 100644 --- a/src/platform/posix/posix_sockaddr.c +++ b/src/platform/posix/posix_sockaddr.c @@ -23,8 +23,13 @@ #include <sys/un.h> #ifndef NNG_HAVE_INET6 +#ifdef HAVE_NNG_HAVE_INET6_BSD +#define NNG_HAVE_INET6 +#include <netinet6/in6.h> +#else #undef NNG_ENABLE_IPV6 #endif +#endif size_t nni_posix_nn2sockaddr(void *sa, const nni_sockaddr *na) |
