$NetBSD$

--- config.h.in.orig	2006-05-09 17:04:28.000000000 +0000
+++ config.h.in
@@ -90,6 +90,7 @@
 #undef const
 
 #if HAVE_SYS_MMAN_H
+#include <sys/types.h>
 #include <sys/mman.h>
 #endif
 
