Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Define EILSEQ if not defined by errno.h
@ 2009-04-11 19:05 Eli Zaretskii
  2009-04-11 19:26 ` Pedro Alves
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2009-04-11 19:05 UTC (permalink / raw)
  To: gdb-patches

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)
 {


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-13 18:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-11 19:05 [RFA] Define EILSEQ if not defined by errno.h Eli Zaretskii
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox