$NetBSD$

--- gettext-tools/config.h.in.orig	2010-06-06 20:12:24.000000000 +0000
+++ gettext-tools/config.h.in
@@ -1,5 +1,9 @@
 /* config.h.in.  Generated from configure.ac by autoheader.  */
 
+#ifdef __NetBSD__
+#include <sys/param.h>
+#endif
+
 
 /* Default value for alignment of strings in .mo file.  */
 #define DEFAULT_OUTPUT_ALIGNMENT 1
@@ -1717,8 +1721,12 @@
 /* Define to 1 if you have the `wctob' function. */
 #undef HAVE_WCTOB
 
+#if !defined(__NetBSD__) || __NetBSD_Version__ >= 200000000
+/* NetBSD before 2.0 doesn't provide wctype_t in wctype.h */
+
 /* Define to 1 if you have the <wctype.h> header file. */
 #undef HAVE_WCTYPE_H
+#endif
 
 /* Define to 1 if you have the `wcwidth' function. */
 #undef HAVE_WCWIDTH
