Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@gnat.com>
To: bash-maintainers@gnu.org
Cc: gdb-patches@sources.redhat.com
Subject: Re: Missing check for mbsrtowc causes compilation failure on HP/UX 11.11
Date: Tue, 28 Jan 2003 05:04:00 -0000	[thread overview]
Message-ID: <20030128050444.GI6437@gnat.com> (raw)
In-Reply-To: <20030128050317.GH6437@gnat.com>

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

> The patch is attached.

Sigh... With the patch, this time. Sorry.

> Changelog:
> 
> aclocal.m4
>         - add check for mbsrtowc.
> 
> config.h.in
>         - regenerate.
> 
> rlmbutil.h
>         - make sure mbsrtowc is available before enabling multibyte support.

-- 
Joel

[-- Attachment #2: readline.diff --]
[-- Type: text/plain, Size: 1657 bytes --]

diff -cp ../../gdb-public.orig/readline/aclocal.m4 ./aclocal.m4
*** ../../gdb-public.orig/readline/aclocal.m4	Fri Dec 13 08:55:58 2002
--- ./aclocal.m4	Mon Jan 27 12:42:10 2003
*************** AC_CHECK_HEADERS(wctype.h)
*** 1652,1657 ****
--- 1652,1658 ----
  AC_CHECK_HEADERS(wchar.h)
  AC_CHECK_HEADERS(langinfo.h)
  
+ AC_CHECK_FUNC(mbsrtowc, AC_DEFINE(HAVE_MBSRTOWC))
  AC_CHECK_FUNC(mbsrtowcs, AC_DEFINE(HAVE_MBSRTOWCS))
  AC_CHECK_FUNC(wcwidth, AC_DEFINE(HAVE_WCWIDTH))
  
diff -cp ../../gdb-public.orig/readline/config.h.in ./config.h.in
*** ../../gdb-public.orig/readline/config.h.in	Fri Dec 13 08:55:59 2002
--- ./config.h.in	Mon Jan 27 12:43:22 2003
***************
*** 31,36 ****
--- 31,39 ----
  /* Define if you have the lstat function. */
  #undef HAVE_LSTAT
  
+ /* Define if you have the mbsrtowc function. */
+ #undef HAVE_MBSRTOWC
+ 
  /* Define if you have the mbsrtowcs function. */
  #undef HAVE_MBSRTOWCS
  
diff -cp ../../gdb-public.orig/readline/rlmbutil.h ./rlmbutil.h
*** ../../gdb-public.orig/readline/rlmbutil.h	Sun Dec  8 17:31:37 2002
--- ./rlmbutil.h	Mon Jan 27 23:22:15 2003
***************
*** 35,41 ****
  #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 */
  #    define HANDLE_MULTIBYTE      1
  #  endif
  #endif
--- 35,42 ----
  #if defined (HAVE_WCTYPE_H) && defined (HAVE_WCHAR_H)
  #  include <wchar.h>
  #  include <wctype.h>
! #  if defined (HAVE_MBSRTOWC) && defined (HAVE_MBSRTOWCS)
!      /* system is supposed to support XPG5 */
  #    define HANDLE_MULTIBYTE      1
  #  endif
  #endif

  reply	other threads:[~2003-01-28  5:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-28  5:03 Joel Brobecker
2003-01-28  5:04 ` Joel Brobecker [this message]
2003-03-03  2:35   ` Elena Zannoni
2003-03-03 19:05     ` Joel Brobecker
2003-03-03 18:55   ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030128050444.GI6437@gnat.com \
    --to=brobecker@gnat.com \
    --cc=bash-maintainers@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox