blob: 99814cf17d484a231c9ddf7e627d4abd74b21c06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$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";
|