binutils-gdb/libctf
Eli Zaretskii 50500ecfef libctf: compilation failure on MinGW due to missing errno values
This commit fixes a compilation failure in a couple of libctf files
due to the use of EOVERFLOW and ENOTSUP, which are not defined
when compiling on MinGW.

libctf/ChangeLog:

	PR binutils/25155:
	* ctf-create.c (EOVERFLOW): If not defined by system header,
	redirect to ERANGE as a poor man's substitute.
	* ctf-subr.c (ENOTSUP): If not defined, use ENOSYS instead.

This one is how Eli implemented it. I think this implementation
has a weakness in the following sense: If other units in libctf
start using those constants, we'll get the same error again.
Also, I'm wondering whether their use is documented as part of
the official libtcf API or not -- users might be writing code
that tests for these, and if the system doesn't support them,
how would they know what errno code to use in its place. This
argues for a having that information in one of libctf's header
files. I think it would be nice to have those in ctf-decls.h,
but I think we'll need to include <errno.h> in ctf-decls.h if
we decide to define those macros there.

Rather than second-guess what the CTF developers would prefer,
I'm starting by sending Eli's patch, to see what you guys think.

Thanks,
--
Joel
2020-02-01 15:25:19 +04:00
..
aclocal.m4 libctf: Regenerate Makefile.in and acinclude.m4 2020-01-05 09:49:33 +04:00
ChangeLog libctf: compilation failure on MinGW due to missing errno values 2020-02-01 15:25:19 +04:00
config.h.in libctf: Add configure check for asprintf (for MinGW) 2020-01-05 09:54:55 +04:00
configure libctf: Add configure check for asprintf (for MinGW) 2020-01-05 09:54:55 +04:00
configure.ac libctf: Add configure check for asprintf (for MinGW) 2020-01-05 09:54:55 +04:00
ctf-archive.c
ctf-create.c libctf: compilation failure on MinGW due to missing errno values 2020-02-01 15:25:19 +04:00
ctf-decl.c
ctf-decls.h
ctf-dump.c libctf: make ctf_dump not crash on OOM 2019-10-03 17:04:56 +01:00
ctf-endian.h
ctf-error.c
ctf-hash.c
ctf-impl.h libctf: make ctf_dump not crash on OOM 2019-10-03 17:04:56 +01:00
ctf-labels.c
ctf-link.c
ctf-lookup.c
ctf-open-bfd.c
ctf-open.c libctf: fix tabdamage 2019-10-03 17:04:56 +01:00
ctf-qsort_r.c
ctf-string.c
ctf-subr.c libctf: compilation failure on MinGW due to missing errno values 2020-02-01 15:25:19 +04:00
ctf-types.c libctf: fix tabdamage 2019-10-03 17:04:56 +01:00
ctf-util.c libctf: make ctf_dump not crash on OOM 2019-10-03 17:04:56 +01:00
elf.h
libctf.ver
Makefile.am
Makefile.in libctf: Regenerate Makefile.in and acinclude.m4 2020-01-05 09:49:33 +04:00
swap.h libctf: mark swap.h inline functions as static 2019-10-16 11:12:23 -04:00