summaryrefslogtreecommitdiff
path: root/source3/lib/interface.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-12-23 07:15:59 +0000
committerJeremy Allison <jra@samba.org>1997-12-23 07:15:59 +0000
commitd1e796d8577a666e5ef14f9bb462c080300dca3e (patch)
tree49a485ff08054c613b585c741d11f7dfbc197c0c /source3/lib/interface.c
parent74c807fcc5a02a5a5b0ea06ddf2bc65e85938716 (diff)
downloadsamba-d1e796d8577a666e5ef14f9bb462c080300dca3e.tar.gz
samba-d1e796d8577a666e5ef14f9bb462c080300dca3e.tar.bz2
samba-d1e796d8577a666e5ef14f9bb462c080300dca3e.zip
Fixes to compile under OpenBSD from "Todd T. Fries" <toddf@acm.org>
Jeremy. (This used to be commit 3c9292505914e2119fa7b1973c9fbbe1742262b2)
Diffstat (limited to 'source3/lib/interface.c')
-rw-r--r--source3/lib/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index 0008ad889d..95c0b9d53c 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -155,7 +155,7 @@ static void get_broadcast(struct in_addr *if_ipaddr,
}
}
}
-#elif defined(__FreeBSD__) || defined(NETBSD) || defined(AMIGA) || defined(_AIX41)
+#elif defined(__FreeBSD__) || defined(NETBSD) || defined(AMIGA) || defined(_AIX41) || defined(__OpenBSD__)
ifc.ifc_len = sizeof(buff);
ifc.ifc_buf = buff;
if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) {