This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Define EILSEQ if not defined by errno.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]