$NetBSD$

--- lib/config.h.orig	2009-03-28 21:56:38.000000000 +0100
+++ lib/config.h	2009-03-28 22:07:45.000000000 +0100
@@ -342,6 +342,31 @@
 #define USE_POLL		1	/* poll() syscall		 */
 #endif
 
+/********************************************************
+ * 			NETBSD				*
+ ********************************************************
+ *
+ * Experimental NetBSD support.
+ */
+
+#ifdef __NetBSD__
+#define USE_MADVISE		1	/* new (test) - premap article pte's */
+#define USE_SYSV_DIR		1	/* use more portable dirent.h (1)*/
+#define USE_PCOMMIT_SHM		1	/* use sharedmem r/w map vs file map */
+#define USE_PCOMMIT_RW_MAP	1	/* use r/w map for pcommit cache */
+#define USE_SPAM_SHM		1	/* use sharedmem r/w map vs file map */
+#define USE_SPAM_RW_MAP		1	/* use r/w map for spam cache	 */
+#define USE_KP_RW_MAP		1	/* use r/w map for KPDB		 */
+#define USE_ANON_MMAP		1	/* use anonymous mmap for alloc  */
+#define USE_SUN_STATVFS		1
+#define DO_PCOMMIT_POSTCACHE	1	/* do precommit post caching	 */
+#define HAS_USLEEP		1	/* < 1 second sleeps		 */
+#define HAS_SA_LEN		1
+#define HAVE_SNPRINTF           1
+#define	HAVE_STRSEP		1
+#define USE_POLL		1	/* poll() syscall		 */
+#endif
+
 #include "lib/vendor.h"
 
 /************************************************************************
