diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-07-19 08:47:35 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-07-19 08:47:35 +0000 |
commit | 66851b5e19300949c520c4c4d587ea693131c309 (patch) | |
tree | b4578d222604d586a52758a0e1283d5f1b0ebf68 /libiberty/simple-object-elf.c | |
parent | 393853f0b7fa66099614604aedb8f2aaa2ad73d1 (diff) |
2018-07-19 Eli Zaretskii <eliz@gnu.org>
* simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect
to ENOSYS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-8-branch@262873 138bc75d-0d04-0410-961f-82ee72b054a4
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 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 <errno.h> +/* mingw.org's MinGW doesn't have ENOTSUP. */ +#ifndef ENOTSUP +# define ENOTSUP ENOSYS +#endif #include <stddef.h> #ifdef HAVE_STDLIB_H |