summaryrefslogtreecommitdiff
path: root/devel/gettext/patches/patch-ao
blob: be8512ccb30abf9d4b83f0b85013347324f89e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ao,v 1.4 2011/04/12 17:41:28 adam Exp $

--- 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