summaryrefslogtreecommitdiff
path: root/shells/tcsh/patches/patches-ab
blob: 4fd3f31b59b0b8d9fed5137f20b0f9b3477acbfa (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
$NetBSD: patches-ab,v 1.1 2007/04/10 00:50:24 christos Exp $

--- config_f.h.orig	2006-08-28 10:53:04.000000000 -0400
+++ config_f.h	2007-04-09 20:02:34.000000000 -0400
@@ -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