8e053ee7cb
enhancements: - Simple command-line tools to interface with VMware host - Guest OS scripts that can be triggered by the VMware host - Startup script When compiled with X11 support (the default), this release also provides: - GTK+-based GUI to configure time sync, device connections, and scripts - Helper application to interface with the xf86-video-vmware driver, enabling dynamic screen resize
31 lines
871 B
Text
31 lines
871 B
Text
$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";
|