pkgsrc/shells/tcsh/patches/patch-ab
he f19e93583b Add a patch to fix issue with Meta-<key> no longer being recognized.
Patch from christos@.
Add comments to some of the other patch files to appease pkglint.
Bump PKGREVISION.
2012-05-25 20:01:31 +00:00

26 lines
643 B
Text

$NetBSD: patch-ab,v 1.12 2012/05/25 20:01:31 he Exp $
Special adaptation for different NetBSD versions and for OpenBSD.
--- 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