libctf: compilation failure on MinGW due to missing errno values
authorEli Zaretskii <eliz@gnu.org>
Sun, 26 Jul 2020 23:06:02 +0000 (16:06 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Sun, 26 Jul 2020 23:11:36 +0000 (16:11 -0700)
commit555adca2e3bcabdef58abf2f68291e47479bc09d
tree50d621d3660b38e43f1c30afb04310093d0ea4d6
parent05a6b8c28baad097147eb06329ce3be940682aa9
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.

(cherry picked from commit 50500ecfefd6acc4c7f6c2a95bc0ae1945103220)
libctf/ChangeLog
libctf/ctf-create.c
libctf/ctf-subr.c