$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