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]

Re: [RFA/commit 2/2] Import gnulib's errno module.


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> This module is needed in order to build GDBserver on ppc-lynx178,
Joel> because the system does not define EILSEQ.

I had a vague memory of some other errno defines, so I grepped and I
found this in charset.c:

/* Some systems don't have EILSEQ, so we define it here, but not as
   EINVAL, because callers of `iconv' want to distinguish EINVAL and
   EILSEQ.  This is what iconv.h from libiconv does as well.  Note
   that wchar.h may also define EILSEQ, so this needs to be after we
   include wchar.h, which happens in defs.h through gdb_wchar.h.  */
#ifndef EILSEQ
#define EILSEQ ENOENT
#endif


My first thought was that we can now get rid of this define.

But now I wonder whether this define will cause problems if we also use
libiconv; unless maybe the various header files are included in the
right order.

Tom


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