[asterisk-commits] tilghman: trunk r124102 - /trunk/main/netsock.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 19 15:25:38 CDT 2008
Author: tilghman
Date: Thu Jun 19 15:25:37 2008
New Revision: 124102
URL: http://svn.digium.com/view/asterisk?view=rev&rev=124102
Log:
Make OpenBSD compile again
(reported by mvanbaak via IRC -dev)
Modified:
trunk/main/netsock.c
Modified: trunk/main/netsock.c
URL: http://svn.digium.com/view/asterisk/trunk/main/netsock.c?view=diff&rev=124102&r1=124101&r2=124102
==============================================================================
--- trunk/main/netsock.c (original)
+++ trunk/main/netsock.c Thu Jun 19 15:25:37 2008
@@ -29,8 +29,14 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__Darwin__)
+#include <net/if_dl.h>
+#endif
+
#if defined (SOLARIS)
#include <sys/sockio.h>
+#elif defined(HAVE_GETIFADDRS)
+#include <ifaddrs.h>
#endif
#include "asterisk/netsock.h"
More information about the asterisk-commits
mailing list