diff options
author | Alexander Traud <pabstraud@compuserve.com> | 2018-03-03 16:06:13 +0100 |
---|---|---|
committer | Alexander Traud <pabstraud@compuserve.com> | 2018-03-03 16:06:13 +0100 |
commit | aabbb49e33ac05d5280ef9b409e64f79342bcb8f (patch) | |
tree | 51ee4b7e35ef2481dea6ee19ab6d396a818a7216 | |
parent | e58ae393b1f83981178c7ddedf4cfb40e6ca5f31 (diff) |
chan_unistim: NetBSD has an incompatible struct in_pktinfo.
ASTERISK-27714
Reported by: John Nemeth
Change-Id: I1b84a89315a5f61222123d21bf35c59224da8990
-rw-r--r-- | channels/chan_unistim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index 9d4c453fc..28d84eeea 100644 --- a/channels/chan_unistim.c +++ b/channels/chan_unistim.c @@ -41,7 +41,7 @@ #include <sys/stat.h> #include <signal.h> -#if defined(__CYGWIN__) +#if defined(__CYGWIN__) || defined(__NetBSD__) /* * cygwin headers are partly inconsistent. struct iovec is defined in sys/uio.h * which is not included by default by sys/socket.h - in_pktinfo is defined in @@ -53,7 +53,7 @@ #ifdef HAVE_PKTINFO #undef HAVE_PKTINFO #endif -#endif /* __CYGWIN__ */ +#endif /* __CYGWIN__ || __NetBSD__ */ #include "asterisk/paths.h" /* ast_config_AST_LOG_DIR used in (too ?) many places */ #include "asterisk/network.h" |