mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
$NetBSD: patch-be,v 1.1 2008/08/31 06:36:48 scottr Exp $
|
|
|
|
--- lib/netUtil/netUtilLinux.c.orig 2008-08-08 02:01:53.000000000 -0500
|
|
+++ lib/netUtil/netUtilLinux.c
|
|
@@ -31,7 +31,7 @@
|
|
#endif
|
|
|
|
|
|
-#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
|
|
+#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
|
|
# error This file should not be compiled
|
|
#endif
|
|
|
|
@@ -58,7 +58,7 @@
|
|
#include <net/if.h>
|
|
#include <sys/ioctl.h>
|
|
|
|
-#if defined(__FreeBSD__) || defined(__APPLE__)
|
|
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__)
|
|
#include "ifaddrs.h"
|
|
#endif
|
|
|
|
@@ -94,7 +94,7 @@
|
|
*----------------------------------------------------------------------
|
|
*/
|
|
|
|
-#if !defined(__FreeBSD__) && !defined(__APPLE__) /* { */
|
|
+#if !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__NetBSD__) /* { */
|
|
char *
|
|
NetUtil_GetPrimaryIP(void)
|
|
{
|
|
@@ -168,7 +168,7 @@ error:
|
|
return NULL;
|
|
}
|
|
|
|
-#else /* } FreeBSD || APPLE { */
|
|
+#else /* } FreeBSD || APPLE || NetBSD { */
|
|
|
|
char *
|
|
NetUtil_GetPrimaryIP(void)
|