$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 #include -#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";