blob: 644a7748a0ffc00d96050734f9b6b84ea5be7e22 (
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
28
29
30
31
32
33
34
35
36
37
|
$NetBSD: patch-ad,v 1.9 2005/07/14 23:58:37 grant Exp $
--- config_f.h.orig 2005-03-05 00:46:04.000000000 +1100
+++ config_f.h
@@ -44,7 +44,18 @@
* of nls...
*
*/
-#define SHORT_STRINGS
+#if defined(__NetBSD__)
+# include <sys/param.h>
+# if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 200000000)
+# define SHORT_STRINGS
+# else
+# undef SHORT_STRINGS
+# endif
+#elif defined(__OpenBSD__)
+# undef SHORT_STRINGS
+#else
+# define SHORT_STRINGS
+#endif
/*
* WIDE_STRINGS Represent strings using wide characters
@@ -69,7 +80,11 @@
* if you don't have <nl_types.h>, you don't want
* to define this.
*/
-#undef NLS_CATALOGS
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+# define NLS_CATALOGS
+#else
+# undef NLS_CATALOGS
+#endif
/*
* LOGINFIRST Source ~/.login before ~/.cshrc
|