$NetBSD$

--- src/dmd/root/root.c.orig	2010-12-20 20:02:36.000000000 +0000
+++ src/dmd/root/root.c
@@ -7,7 +7,7 @@
 // in artistic.txt, or the GNU General Public License in gnu.txt.
 // See the included readme.txt for details.
 
-#define POSIX (linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4)
+#define POSIX (linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4 || __NetBSD__)
 
 #include <stdio.h>
 #include <stdlib.h>
