From: Eli Zaretskii Date: Thu, 19 Jul 2018 08:47:34 +0000 (+0000) Subject: simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect to ENOSYS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30ae6662408271f96a97d28f684022c413b71063;p=gcc.git simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect to ENOSYS. 2018-07-19 Eli Zaretskii * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect to ENOSYS. From-SVN: r262872 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 578da58181f..398d0306d8c 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2018-07-19 Eli Zaretskii + + * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect + to ENOSYS. + 2018-05-30 Jan Hubicka * simple-object.c (handle_lto_debug_sections): Add rename parameter. 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