$NetBSD$

--- vncviewer/listen.c.orig	Tue Jan 16 02:07:57 2001
+++ vncviewer/listen.c
@@ -124,7 +124,11 @@ listenForIncomingConnections(int *argc, 
 
     /* reap any zombies */
     int status, pid;
+#ifdef __INTERIX
+    while ((pid= waitpid(-1, &status, WNOHANG))>0);
+#else
     while ((pid= wait3(&status, WNOHANG, (struct rusage *)0))>0);
+#endif
 
     /* discard any X events */
     while (XCheckIfEvent(d, &ev, AllXEventsPredicate, NULL))
