diff options
author | Eli Zaretskii <eliz@gnu.org> | 2018-07-19 16:54:06 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2018-07-19 16:54:06 +0300 |
commit | db3410f80f793189d3c8afb8b80951333d3fe007 (patch) | |
tree | 3e073b13f8dc15591f54c01fb6d48fd8e5ba2f61 | |
parent | 442a6ce858c0da0c5fba3eeb57a646254adf107a (diff) | |
download | gdb-db3410f80f793189d3c8afb8b80951333d3fe007.zip gdb-db3410f80f793189d3c8afb8b80951333d3fe007.tar.gz gdb-db3410f80f793189d3c8afb8b80951333d3fe007.tar.bz2 |
Fix GDB build using mingw.org's MinGW
libiberty/
2018-07-18 Eli Zaretskii <eliz@gnu.org>
PR gdb/23434
* libiberty/simple-object-elf.c (ENOTSUP): If not defined by
errno.h, redirect ENOTSUP to ENOSYS.
-rw-r--r-- | libiberty/ChangeLog | 6 | ||||
-rw-r--r-- | libiberty/simple-object-elf.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index c944f9e..cde8bf7 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2018-07-18 Eli Zaretskii <eliz@gnu.org> + + PR gdb/23434 + * libiberty/simple-object-elf.c (ENOTSUP): If not defined by + errno.h, redirect ENOTSUP to ENOSYS. + 2018-06-19 Simon Marchi <simon.marchi@ericsson.com> * configure.ac: Remove AC_PREREQ. diff --git a/libiberty/simple-object-elf.c b/libiberty/simple-object-elf.c index 7468a1a..021ce48 100644 --- a/libiberty/simple-object-elf.c +++ b/libiberty/simple-object-elf.c @@ -22,6 +22,10 @@ Boston, MA 02110-1301, USA. */ #include "simple-object.h" #include <errno.h> +/* mingw.org's MinGW doesn't have ENOTSUP. */ +#ifndef ENOTSUP +# define ENOTSUP ENOSYS +#endif #include <stddef.h> #ifdef HAVE_STDLIB_H |