From: Eli Zaretskii <eliz@gnu.org>
To: gdb-patches@sources.redhat.com
Subject: [RFA] Define EILSEQ if not defined by errno.h
Date: Sat, 11 Apr 2009 19:05:00 -0000 [thread overview]
Message-ID: <83zlennh8p.fsf@gnu.org> (raw)
Any objections to the following patch? DJGPP doesn't have EILSEQ
defined in its errno.h.
2009-04-11 Eli Zaretskii <eliz@gnu.org>
* 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)
{
next reply other threads:[~2009-04-11 19:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-11 19:05 Eli Zaretskii [this message]
2009-04-11 19:26 ` Pedro Alves
2009-04-11 21:27 ` Eli Zaretskii
2009-04-13 16:54 ` Tom Tromey
2009-04-13 18:52 ` Eli Zaretskii
2009-04-13 18:58 ` Eli Zaretskii
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=83zlennh8p.fsf@gnu.org \
--to=eliz@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