Fix GDB build using mingw.org's MinGW
libiberty/ 2018-07-18 Eli Zaretskii <eliz@gnu.org> PR gdb/23434 * libiberty/simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect ENOTSUP to ENOSYS.
This commit is contained in:
parent
442a6ce858
commit
db3410f80f
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue