From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22309 invoked by alias); 11 Apr 2009 19:05:32 -0000 Received: (qmail 22301 invoked by uid 22791); 11 Apr 2009 19:05:32 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout2.012.net.il (HELO mtaout2.012.net.il) (84.95.2.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 11 Apr 2009 19:05:26 +0000 Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KHY00J00A9BXL00@i_mtaout2.012.net.il> for gdb-patches@sources.redhat.com; Sat, 11 Apr 2009 22:05:23 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.240.185]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KHY00IUXACYHOA0@i_mtaout2.012.net.il> for gdb-patches@sources.redhat.com; Sat, 11 Apr 2009 22:05:23 +0300 (IDT) Date: Sat, 11 Apr 2009 19:05:00 -0000 From: Eli Zaretskii Subject: [RFA] Define EILSEQ if not defined by errno.h To: gdb-patches@sources.redhat.com Reply-to: Eli Zaretskii Message-id: <83zlennh8p.fsf@gnu.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00217.txt.bz2 Any objections to the following patch? DJGPP doesn't have EILSEQ defined in its errno.h. 2009-04-11 Eli Zaretskii * charset.c (EILSEQ): Define if not defined by errno.h. Index: gdb/charset.c =================================================================== RCS file: /cvs/src/src/gdb/charset.c,v retrieving revision 1.19 diff -u -r1.19 charset.c --- gdb/charset.c 25 Mar 2009 00:58:34 -0000 1.19 +++ gdb/charset.c 11 Apr 2009 19:03:08 -0000 @@ -89,6 +89,12 @@ #undef ICONV_CONST #define ICONV_CONST const +/* Some systems, don't have EILSEQ. But don't define it as EINVAL, + because callers of `iconv' want to distinguish EINVAL and EILSEQ. */ +#ifndef EILSEQ +#define EILSEQ ENOENT +#endif + iconv_t iconv_open (const char *to, const char *from) {