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-Tag: basepoints/gcc-10~5229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30ae6662408271f96a97d28f684022c413b71063;p=thirdparty%2Fgcc.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 578da58181f5..398d0306d8c4 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 7468a1adc3dd..021ce488c16a 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