$NetBSD$

--- frontend/common/src/System.cc.orig	2007-09-14 12:50:32.000000000 -0600
+++ frontend/common/src/System.cc
@@ -39,6 +39,10 @@
 #include <X11/Xutil.h>
 #endif
 
+#if defined(HAVE_UNIX)
+#include <sys/wait.h>
+#endif
+
 #ifdef WIN32
 #include <shlobj.h>
 #include "harpoon.h"
