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
49 lines
2 KiB
Text
49 lines
2 KiB
Text
$NetBSD: patch-ae,v 1.2 2008/08/31 06:36:47 scottr Exp $
|
|
|
|
--- guestd/main.c.orig 2008-08-08 02:01:56.000000000 -0500
|
|
+++ guestd/main.c
|
|
@@ -59,7 +59,7 @@
|
|
#include "vmBackup.h"
|
|
#include "codeset.h"
|
|
|
|
-#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
|
|
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
|
|
#include "socketMgr.h"
|
|
#endif
|
|
|
|
@@ -864,7 +864,7 @@ GuestdSleep(uint64 numUsecs,
|
|
int maxFd; /* Max fd of all Fd sets */
|
|
fd_set readFds; /* Read fd set to select on */
|
|
fd_set writeFds;
|
|
-#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
|
|
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
|
|
SocketSelectable *sockReadFds = NULL;
|
|
SocketSelectable *sockWriteFds = NULL;
|
|
int numSockReadFds = 0;
|
|
@@ -911,7 +911,7 @@ GuestdSleep(uint64 numUsecs,
|
|
}
|
|
#endif
|
|
|
|
-#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
|
|
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
|
|
SocketMgr_GetSelectables(SOCKETMGR_IN,
|
|
&sockReadFds,
|
|
&numSockReadFds);
|
|
@@ -969,7 +969,7 @@ GuestdSleep(uint64 numUsecs,
|
|
curAsyncProc = NULL;
|
|
}
|
|
|
|
-#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
|
|
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
|
|
for (index = 0; index < numSockReadFds; index++) {
|
|
if (FD_ISSET(sockReadFds[index], &readFds)) {
|
|
SocketMgr_ProcessSelectable(sockReadFds[index], SOCKETMGR_IN);
|
|
@@ -984,7 +984,7 @@ GuestdSleep(uint64 numUsecs,
|
|
#endif
|
|
}
|
|
|
|
-#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
|
|
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
|
|
free((void *) sockReadFds);
|
|
free((void *) sockWriteFds);
|
|
#endif
|