]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_unistim: NetBSD has an incompatible struct in_pktinfo.
authorAlexander Traud <pabstraud@compuserve.com>
Sat, 3 Mar 2018 15:06:13 +0000 (16:06 +0100)
committerAlexander Traud <pabstraud@compuserve.com>
Sat, 3 Mar 2018 15:06:54 +0000 (09:06 -0600)
ASTERISK-27714
Reported by: John Nemeth

Change-Id: I1b84a89315a5f61222123d21bf35c59224da8990

channels/chan_unistim.c

index 9d4c453fce2f5bb929da6cd4ed7a458a93046054..28d84eeea7d903dd48698a4dcbe433b57c74350f 100644 (file)
@@ -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"