mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
25 lines
1006 B
Plaintext
25 lines
1006 B
Plaintext
$NetBSD: patch-ae,v 1.3 2013/03/24 16:51:08 joerg Exp $
|
|
--- PlaylistBroadcaster.tproj/GetLocalIPAddressString.c.orig 2003-08-15 23:53:06.000000000 +0000
|
|
+++ PlaylistBroadcaster.tproj/GetLocalIPAddressString.c
|
|
@@ -80,9 +80,9 @@ short GetLocalIPAddressString(char *retu
|
|
ifc.ifc_len = kMaxAddrBufferSize;
|
|
ifc.ifc_buf = buffer;
|
|
|
|
-#if (__linux__ || __MacOSX__ || __MACOS__ || __linuxppc__ || __solaris__ || __sgi__)
|
|
+#if (__linux__ || __MacOSX__ || __MACOS__ || __linuxppc__ || __solaris__ || __sgi__) || __NetBSD__
|
|
err = ioctl(tempSocket, SIOCGIFCONF, (char*)&ifc);
|
|
-#elif __FreeBSD__
|
|
+#elif __FreeBSD__ || defined(__DragonFly__)
|
|
err = ioctl(tempSocket, OSIOCGIFCONF, (char*)&ifc);
|
|
#else
|
|
#error
|
|
@@ -90,7 +90,7 @@ short GetLocalIPAddressString(char *retu
|
|
if (err == -1) break;
|
|
|
|
|
|
-#if __FreeBSD__
|
|
+#if __FreeBSD__ || __NetBSD__ || defined(__DragonFly__)
|
|
{
|
|
int netdev1, netdev2;
|
|
struct ifreq *netdevifr;
|