summaryrefslogtreecommitdiff
path: root/shells/bash2/patches
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2002-11-25 05:39:33 +0000
committerschmonz <schmonz@pkgsrc.org>2002-11-25 05:39:33 +0000
commit01fd684ef5f5ed9b95b5089c634ac8aa1d00519a (patch)
tree1db7647da18c6dda8639886147e19bbebaea26e5 /shells/bash2/patches
parent4bb4746e6acd689a99c226813209dcb61a24b5f5 (diff)
downloadpkgsrc-01fd684ef5f5ed9b95b5089c634ac8aa1d00519a.tar.gz
Disable multibyte support on NetBSD to fix compile error.
Diffstat (limited to 'shells/bash2/patches')
-rw-r--r--shells/bash2/patches/patch-aa21
-rw-r--r--shells/bash2/patches/patch-ac21
-rw-r--r--shells/bash2/patches/patch-ad21
3 files changed, 63 insertions, 0 deletions
diff --git a/shells/bash2/patches/patch-aa b/shells/bash2/patches/patch-aa
new file mode 100644
index 00000000000..036f07c1a07
--- /dev/null
+++ b/shells/bash2/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.9 2002/11/25 05:39:34 schmonz Exp $
+
+--- config-bot.h.orig Tue Apr 16 17:01:03 2002
++++ config-bot.h
+@@ -104,11 +104,16 @@
+ /* For platforms which support the ISO C amendement 1 functionality we
+ support user defined character classes. */
+ /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
++#if defined (__NetBSD__)
++# define HANDLE_MULTIBYTE 0
++#endif
+ #if defined (HAVE_WCTYPE_H) && defined (HAVE_WCHAR_H)
+ # include <wchar.h>
+ # include <wctype.h>
+ # if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */
++# if !defined (HANDLE_MULTIBYTE)
+ # define HANDLE_MULTIBYTE 1
++# endif
+ # endif
+ #endif
+
diff --git a/shells/bash2/patches/patch-ac b/shells/bash2/patches/patch-ac
new file mode 100644
index 00000000000..39314dd7c45
--- /dev/null
+++ b/shells/bash2/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.7 2002/11/25 05:39:35 schmonz Exp $
+
+--- include/shmbutil.h.orig Mon May 6 13:58:39 2002
++++ include/shmbutil.h
+@@ -30,11 +30,16 @@
+ /* For platforms which support the ISO C amendement 1 functionality we
+ support user defined character classes. */
+ /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
++#if defined (__NetBSD__)
++# define HANDLE_MULTIBYTE 0
++#endif
+ #if defined (HAVE_WCTYPE_H) && defined (HAVE_WCHAR_H)
+ # include <wchar.h>
+ # include <wctype.h>
+ # if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */
++# if !defined(HANDLE_MULTIBYTE)
+ # define HANDLE_MULTIBYTE 1
++# endif
+ # endif
+ #endif /* HAVE_WCTYPE_H && HAVE_WCHAR_H */
+
diff --git a/shells/bash2/patches/patch-ad b/shells/bash2/patches/patch-ad
new file mode 100644
index 00000000000..945b67cf3c8
--- /dev/null
+++ b/shells/bash2/patches/patch-ad
@@ -0,0 +1,21 @@
+$NetBSD: patch-ad,v 1.3 2002/11/25 05:39:36 schmonz Exp $
+
+--- lib/readline/rlmbutil.h.orig Thu Dec 20 09:54:38 2001
++++ lib/readline/rlmbutil.h
+@@ -32,11 +32,16 @@
+ /* For platforms which support the ISO C amendement 1 functionality we
+ support user defined character classes. */
+ /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
++#if defined (__NetBSD__)
++# define HANDLE_MULTIBYTE 0
++#endif
+ #if defined (HAVE_WCTYPE_H) && defined (HAVE_WCHAR_H)
+ # include <wchar.h>
+ # include <wctype.h>
+ # if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */
++# if !defined(HANDLE_MULTIBYTE)
+ # define HANDLE_MULTIBYTE 1
++# endif
+ # endif
+ #endif
+