diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-08 00:55:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-08 00:55:08 +0000 |
commit | 569e218418dacfddc5ac2f5e7f4603ad72f6dad7 (patch) | |
tree | e3222143a4df7ddc05ada6cf0839b0b9501d2fd7 /sys-devel/flex/files | |
parent | change xml2 to xml (diff) | |
download | gentoo-2-569e218418dacfddc5ac2f5e7f4603ad72f6dad7.tar.gz gentoo-2-569e218418dacfddc5ac2f5e7f4603ad72f6dad7.tar.bz2 gentoo-2-569e218418dacfddc5ac2f5e7f4603ad72f6dad7.zip |
Fix locale.h include bug #121920 by Chris Smith.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'sys-devel/flex/files')
-rw-r--r-- | sys-devel/flex/files/flex-2.5.31-check-for-locale-header.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sys-devel/flex/files/flex-2.5.31-check-for-locale-header.patch b/sys-devel/flex/files/flex-2.5.31-check-for-locale-header.patch new file mode 100644 index 000000000000..fe60828b41c1 --- /dev/null +++ b/sys-devel/flex/files/flex-2.5.31-check-for-locale-header.patch @@ -0,0 +1,37 @@ +the source code has an '#ifdef HAVE_LOCALE_H' but forgets to +actually check for locale.h in configure + +http://bugs.gentoo.org/121920 + +--- flex-2.5.31/configure ++++ flex-2.5.31/configure +@@ -6964,7 +6991,7 @@ + + + +-for ac_header in unistd.h stdbool.h netinet/in.h limits.h ++for ac_header in unistd.h stdbool.h netinet/in.h limits.h locale.h + do + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` + if eval "test \"\${$as_ac_Header+set}\" = set"; then +--- flex-2.5.31/conf.in ++++ flex-2.5.31/conf.in +@@ -4,6 +4,9 @@ + language is requested. */ + #undef ENABLE_NLS + ++/* Define to 1 if you have the <locale.h> header file. */ ++#undef HAVE_LOCALE_H ++ + /* Define to 1 if you have the <cunistd> header file. */ + #undef HAVE_CUNISTD + +configure.in changes + dnl checks for header files + + AC_HEADER_STDC +-AC_CHECK_HEADERS(unistd.h stdbool.h netinet/in.h limits.h) ++AC_CHECK_HEADERS(unistd.h stdbool.h netinet/in.h limits.h locale.h) + AC_CHECK_HEADERS( sys/wait.h sys/params.h) + AC_CHECK_HEADERS(cunistd) + |