projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4574d2
)
Make OpenBSD compile again
author
Tilghman Lesher
<tilghman@meg.abyt.es>
Thu, 19 Jun 2008 20:25:37 +0000
(20:25 +0000)
committer
Tilghman Lesher
<tilghman@meg.abyt.es>
Thu, 19 Jun 2008 20:25:37 +0000
(20:25 +0000)
(reported by mvanbaak via IRC -dev)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@124102
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/netsock.c
patch
|
blob
|
history
diff --git
a/main/netsock.c
b/main/netsock.c
index
0ffb5a5
..
2bdf9cc
100644
(file)
--- a/
main/netsock.c
+++ b/
main/netsock.c
@@
-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"