diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-06-19 20:25:37 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-06-19 20:25:37 +0000 |
commit | 27be0a319724aff1a0fcdf966b790f63c941a474 (patch) | |
tree | 8cb0dd95df98f32371c37329049e23f93540b971 | |
parent | b4574d2a79929eb84d085c0f0ee17c9cf4759505 (diff) |
Make OpenBSD compile again
(reported by mvanbaak via IRC -dev)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@124102 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/netsock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/netsock.c b/main/netsock.c index 0ffb5a56f..2bdf9ccd6 100644 --- 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" |