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.


> /* 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.

I though libiconv had its own mechanism for defining EILSEQ.
Do you think the two are going to interfere?

-- 
Joel


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