mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-17 08:20:31 -04:00
32 lines
871 B
Plaintext
32 lines
871 B
Plaintext
$NetBSD: patch-bh,v 1.1 2008/08/31 06:36:48 scottr Exp $
|
|
|
|
--- lib/system/systemLinux.c.orig 2008-08-08 02:01:53.000000000 -0500
|
|
+++ lib/system/systemLinux.c
|
|
@@ -26,7 +26,7 @@
|
|
*
|
|
*/
|
|
|
|
-#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
|
|
|
|
@@ -55,7 +55,7 @@
|
|
#include <net/if.h>
|
|
#include <sys/ioctl.h>
|
|
|
|
-#ifdef __FreeBSD__
|
|
+#if defined(__FreeBSD__) || defined(__NetBSD__)
|
|
#include "ifaddrs.h"
|
|
#endif
|
|
|
|
@@ -352,7 +352,7 @@ System_Shutdown(Bool reboot) // IN: "re
|
|
if (reboot) {
|
|
cmd = "shutdown -r now";
|
|
} else {
|
|
-#if __FreeBSD__
|
|
+#if defined(__FreeBSD__) || defined(__NetBSD__)
|
|
cmd = "shutdown -p now";
|
|
#else
|
|
cmd = "shutdown -h now";
|