[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gawk mbstate_t problem on hppa2.0w-hp-hpux11.11
From: |
Michael Elizabeth Chastain |
Subject: |
gawk mbstate_t problem on hppa2.0w-hp-hpux11.11 |
Date: |
Sat, 6 Dec 2003 13:09:19 -0500 (EST) |
Hello,
I'm building gawk 3.1.3 on hppa2.0w-hp-hpux11.11 with gcc 3.3.2.
The build fails due to an undefined type mbstate_t.
I'm running into this problem:
http://www.mail-archive.com/address@hidden/msg09546.html
AC_TYPE_MBSTATE_T -- more info
This patch enables gawk to build on this platform.
All of the tests in 'make check' pass.
Michael C
===
diff -u -r -N ORIGINAL-gawk-3.1.3/awk.h gawk-3.1.3/awk.h
--- ORIGINAL-gawk-3.1.3/awk.h 2003-06-29 08:52:40.000000000 -0400
+++ gawk-3.1.3/awk.h 2003-12-06 12:55:41.000000000 -0500
@@ -76,6 +76,9 @@
#if defined(HAVE_MBRLEN) && defined(HAVE_MBRTOWC) && defined(HAVE_WCHAR_H) &&
defined(HAVE_WCTYPE_H)
/* We can handle multibyte strings. */
#define MBS_SUPPORT
+#if defined(__hpux__)
+#include <sys/_mbstate_t.h>
+#endif
#include <wchar.h>
#include <wctype.h>
#endif
diff -u -r -N ORIGINAL-gawk-3.1.3/regex_internal.h gawk-3.1.3/regex_internal.h
--- ORIGINAL-gawk-3.1.3/regex_internal.h 2003-03-11 04:44:35.000000000
-0500
+++ gawk-3.1.3/regex_internal.h 2003-12-06 12:56:40.000000000 -0500
@@ -43,6 +43,9 @@
# include <locale.h>
#endif
#if defined HAVE_WCHAR_H || defined _LIBC
+# if defined(__hpux__)
+# include <sys/_mbstate_t.h>
+# endif
# include <wchar.h>
#endif /* HAVE_WCHAR_H || _LIBC */
#if defined HAVE_WCTYPE_H || defined _LIBC
- gawk mbstate_t problem on hppa2.0w-hp-hpux11.11,
Michael Elizabeth Chastain <=