From eee8a893b2ae600335abbad9da03fcec41e55257 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 10 Jan 2007 13:46:26 +0000 Subject: [PATCH] * lib/wctype_.h [HAVE_WINT_T]: Include before , to work around BSDI bug in BSD/OS 4.0.1. * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise. * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise. Reported by Chris McGuire. --- ChangeLog | 8 ++++++++ lib/wctype_.h | 7 ++++--- m4/wcwidth.m4 | 9 +++++---- m4/wint_t.m4 | 14 +++++++++++--- 4 files changed, 28 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index da23d5aae..aa5338ba8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-01-10 Eric Blake + + * lib/wctype_.h [HAVE_WINT_T]: Include before + , to work around BSDI bug in BSD/OS 4.0.1. + * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise. + * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise. + Reported by Chris McGuire. + 2007-01-09 Ralf Wildenhues * gnulib-tool (func_all_modules): Use POSIX conforming escaping diff --git a/lib/wctype_.h b/lib/wctype_.h index 93f8ef6e6..6a3c05653 100644 --- a/lib/wctype_.h +++ b/lib/wctype_.h @@ -1,6 +1,6 @@ /* A substitute for ISO C99 , for platforms that lack it. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -33,8 +33,9 @@ /* Solaris 2.5 has a bug: must be included before . Tru64 with Desktop Toolkit C has a bug: must be included before . - BSD/OS 4.1 has a bug: and must be included before - . */ + BSD/OS 4.0.1 has a bug: , and must be + included before . */ +# include # include # include # include diff --git a/m4/wcwidth.m4 b/m4/wcwidth.m4 index 7f23e5fed..ad6222fa4 100644 --- a/m4/wcwidth.m4 +++ b/m4/wcwidth.m4 @@ -1,5 +1,5 @@ -# wcwidth.m4 serial 6 -dnl Copyright (C) 2006 Free Software Foundation, Inc. +# wcwidth.m4 serial 7 +dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -22,8 +22,9 @@ AC_DEFUN([gl_FUNC_WCWIDTH], #if HAVE_WCHAR_H /* Tru64 with Desktop Toolkit C has a bug: must be included before . - BSD/OS 4.1 has a bug: and must be included before - . */ + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +# include # include # include # include diff --git a/m4/wint_t.m4 b/m4/wint_t.m4 index b8fff9c86..3706c047d 100644 --- a/m4/wint_t.m4 +++ b/m4/wint_t.m4 @@ -1,5 +1,5 @@ -# wint_t.m4 serial 1 (gettext-0.12) -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# wint_t.m4 serial 2 (gettext-0.12) +dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -11,7 +11,15 @@ dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, - [AC_TRY_COMPILE([#include + [AC_TRY_COMPILE([ +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include wint_t foo = (wchar_t)'\0';], , gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) if test $gt_cv_c_wint_t = yes; then -- 2.11.0