From patchwork Sun Apr 19 15:44:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 6323 Received: (qmail 115672 invoked by alias); 19 Apr 2015 15:44:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 115654 invoked by uid 89); 19 Apr 2015 15:44:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL, BAYES_20, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Sun, 19 Apr 2015 15:44:33 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3lVFp54t7Lz3hj2N; Sun, 19 Apr 2015 17:44:29 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3lVFp54NBwzvm1W; Sun, 19 Apr 2015 17:44:29 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 3r68abIdzC9V; Sun, 19 Apr 2015 17:44:28 +0200 (CEST) X-Auth-Info: 3TswigerUAz2PP7VtYr5/NqRiTu7nQck3AMwPfkWyaU42ZTNG9kN5D7Cnqt3Q4us Received: from igel.home (ppp-212-114-238-5.dynamic.mnet-online.de [212.114.238.5]) by mail.mnet-online.de (Postfix) with ESMTPA; Sun, 19 Apr 2015 17:44:28 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 5D5F32C3D74; Sun, 19 Apr 2015 17:44:28 +0200 (CEST) From: Andreas Schwab To: Chen Gang Cc: binutils@sourceware.org, "gdb-patches\@sourceware.org" Subject: Re: [PATCH] readline: rlmbutil.h: Declare wcwidth() when HANDLE_MULTIBYTE enabled. References: X-Yow: Okay, BARBRA STREISAND, I recognize you now!! Also EFREM ZIMBALIST, JUNIOR!! And BEAUMONT NEWHALL!! Everybody into th' BATHROOM! Date: Sun, 19 Apr 2015 17:44:28 +0200 In-Reply-To: (Chen Gang's message of "Sun, 19 Apr 2015 19:42:55 +0800") Message-ID: <87a8y4ktr7.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Chen Gang writes: > On fedora 20 x86_64, it has wcwidth() in libc.so.6, but does not declare > it if __USE_XOPEN disabled. readline uses libc library, but does not use > XOPEN, It does, but config.h.in fails to provide the necessary template. Andreas. * readline/config.h.in: Add missing templates. --- readline/config.h.in | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/readline/config.h.in b/readline/config.h.in index 8560c4b..f50956e 100644 --- a/readline/config.h.in +++ b/readline/config.h.in @@ -6,6 +6,14 @@ #undef _FILE_OFFSET_BITS +#undef __EXTENSIONS__ +#undef _ALL_SOURCE +#undef _GNU_SOURCE +#undef _POSIX_SOURCE +#undef _POSIX_1_SOURCE +#undef _POSIX_PTHREAD_SEMANTICS +#undef _TANDEM_SOURCE + /* Define if on MINIX. */ #undef _MINIX @@ -27,6 +35,8 @@ #undef PROTOTYPES +#undef __PROTOTYPES + #undef __CHAR_UNSIGNED__ /* Define if the `S_IS*' macros in do not work properly. */ @@ -71,6 +81,12 @@ /* Define if you have the mbrtowc function. */ #undef HAVE_MBRTOWC +/* Define if you have the mbscmp function. */ +#undef HAVE_MBSCMP + +/* Define if you have the mbsnrtowcs function. */ +#undef HAVE_MBSNRTOWCS + /* Define if you have the mbsrtowcs function. */ #undef HAVE_MBSRTOWCS @@ -118,6 +134,9 @@ /* Define if you have the wcscoll function. */ #undef HAVE_WCSCOLL +/* Define if you have the wcsdup function. */ +#undef HAVE_WCSDUP + /* Define if you have the wctype function. */ #undef HAVE_WCTYPE @@ -235,9 +254,9 @@ #undef HAVE_GETPW_DECLS -#undef STRUCT_DIRENT_HAS_D_INO +#undef HAVE_STRUCT_DIRENT_D_INO -#undef STRUCT_DIRENT_HAS_D_FILENO +#undef HAVE_STRUCT_DIRENT_D_FILENO #undef HAVE_BSD_SIGNALS