$NetBSD: patch-aj,v 1.1.1.1 2011/02/16 17:10:41 thomasklausner Exp $

--- src/dmd/root/response.c.orig	2010-12-20 20:02:36.000000000 +0000
+++ src/dmd/root/response.c
@@ -19,7 +19,7 @@
 #include <io.h>
 #endif
 
-#if linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4
+#if linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4 || __NetBSD__
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <fcntl.h>
