From: Eli Zaretskii Date: Thu, 19 Jul 2018 13:54:06 +0000 (+0300) Subject: Fix GDB build using mingw.org's MinGW X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db3410f80f793189d3c8afb8b80951333d3fe007;p=binutils-gdb.git Fix GDB build using mingw.org's MinGW libiberty/ 2018-07-18 Eli Zaretskii PR gdb/23434 * libiberty/simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect ENOTSUP to ENOSYS. --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index c944f9ecc83..cde8bf7a8c1 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2018-07-18 Eli Zaretskii + + PR gdb/23434 + * libiberty/simple-object-elf.c (ENOTSUP): If not defined by + errno.h, redirect ENOTSUP to ENOSYS. + 2018-06-19 Simon Marchi * configure.ac: Remove AC_PREREQ. diff --git a/libiberty/simple-object-elf.c b/libiberty/simple-object-elf.c index 7468a1adc3d..021ce488c16 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 +/* mingw.org's MinGW doesn't have ENOTSUP. */ +#ifndef ENOTSUP +# define ENOTSUP ENOSYS +#endif #include #ifdef HAVE_STDLIB_H