$NetBSD$

--- Xvnc/config/imake/imakemdep.h.orig	2003-02-19 16:39:54.000000000 +0000
+++ Xvnc/config/imake/imakemdep.h
@@ -253,9 +253,12 @@ in this Software without prior written a
 #ifdef _CRAY
 #define DEFAULT_CPP "/lib/pcpp"
 #endif
-#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
+#if defined(__386BSD__)
 #define DEFAULT_CPP "/usr/libexec/cpp"
 #endif
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
+#define USE_CC_E
+#endif
 #if defined(__sgi) && defined(__ANSI_CPP__)
 #define USE_CC_E
 #endif
@@ -290,6 +293,11 @@ in this Software without prior written a
  *     that support multiple operating systems).
  */
 
+#ifdef __NetBSD__
+#undef unix
+#define unix 42
+#endif
+
 #define	ARGUMENTS 50	/* number of arguments in various arrays */
 char *cpp_argv[ARGUMENTS] = {
 	"cc",		/* replaced by the actual program to exec */
