blob: fc7d50a5bb7d3fdf1f88dfb091a832eac86be241 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-bh,v 1.3 2016/10/17 20:55:49 ryoon Exp $
--- lib/system/systemLinux.c.orig 2016-02-16 20:06:46.000000000 +0000
+++ 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
@@ -366,7 +366,7 @@ System_Shutdown(Bool reboot) // IN: "re
cmd = "/sbin/shutdown -r now";
#endif
} else {
-#if __FreeBSD__
+#if __FreeBSD__ || __NetBSD__
cmd = "/sbin/shutdown -p now";
#elif defined(sun)
cmd = "/usr/sbin/shutdown -g 0 -i 5 -y";
|