22 lines
768 B
Plaintext
22 lines
768 B
Plaintext
$OpenBSD: patch-CommonUtilitiesLib_SocketUtils_cpp,v 1.1.1.1 2003/05/23 16:19:28 jakob Exp $
|
|
--- CommonUtilitiesLib/SocketUtils.cpp.orig Sat Feb 22 00:42:11 2003
|
|
+++ CommonUtilitiesLib/SocketUtils.cpp Tue Apr 8 00:01:02 2003
|
|
@@ -338,7 +338,7 @@ void SocketUtils::Initialize(Bool16 look
|
|
|
|
#if __linux__ || __MACOS__ || __linuxppc__ || __solaris__ || __MacOSX__
|
|
int err = ::ioctl(tempSocket, SIOCGIFCONF, (char*)&ifc);
|
|
-#elif __FreeBSD__
|
|
+#elif __FreeBSD__ || __OpenBSD__
|
|
int err = ::ioctl(tempSocket, OSIOCGIFCONF, (char*)&ifc);
|
|
#else
|
|
#error
|
|
@@ -346,7 +346,7 @@ void SocketUtils::Initialize(Bool16 look
|
|
if (err == -1)
|
|
return;
|
|
|
|
-#if __FreeBSD__
|
|
+#if __FreeBSD__ || __OpenBSD__
|
|
int netdev1, netdev2;
|
|
struct ifreq *netdevifr;
|
|
netdevifr = ifc.ifc_req;
|