[Asterisk-code-review] chan unistim: NetBSD has an incompatible struct in pktinfo. (asterisk[13])

Alexander Traud asteriskteam at digium.com
Sat Mar 3 09:06:46 CST 2018


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/8416


Change subject: chan_unistim: NetBSD has an incompatible struct in_pktinfo.
......................................................................

chan_unistim: NetBSD has an incompatible struct in_pktinfo.

ASTERISK-27714
Reported by: John Nemeth

Change-Id: I1b84a89315a5f61222123d21bf35c59224da8990
---
M channels/chan_unistim.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/16/8416/1

diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c
index 4bf43b7..5d8e47c 100644
--- a/channels/chan_unistim.c
+++ b/channels/chan_unistim.c
@@ -43,7 +43,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
@@ -55,7 +55,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"

-- 
To view, visit https://gerrit.asterisk.org/8416
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1b84a89315a5f61222123d21bf35c59224da8990
Gerrit-Change-Number: 8416
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180303/71b8c63a/attachment.html>


More information about the asterisk-code-review mailing list