diff options
author | Eli Zaretskii <eliz@gnu.org> | 2018-07-19 08:47:34 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-07-19 08:47:34 +0000 |
commit | 30ae6662408271f96a97d28f684022c413b71063 (patch) | |
tree | 8de88d09b5dbf4336956101abf6df6e423ccc9c1 /libiberty/simple-object-elf.c | |
parent | 6e559c70b7525cea4174ea958067987e64314e1b (diff) | |
download | gcc-30ae6662408271f96a97d28f684022c413b71063.zip gcc-30ae6662408271f96a97d28f684022c413b71063.tar.gz gcc-30ae6662408271f96a97d28f684022c413b71063.tar.bz2 |
simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect to ENOSYS.
2018-07-19 Eli Zaretskii <eliz@gnu.org>
* simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect
to ENOSYS.
From-SVN: r262872
Diffstat (limited to 'libiberty/simple-object-elf.c')
-rw-r--r-- | libiberty/simple-object-elf.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |