simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect to ENOSYS.
authorEli Zaretskii <eliz@gnu.org>
Thu, 19 Jul 2018 08:47:34 +0000 (08:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 19 Jul 2018 08:47:34 +0000 (08:47 +0000)
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

libiberty/ChangeLog
libiberty/simple-object-elf.c

index 578da58181f5c04fae0f5d90a2d21b82ee5b2a9a..398d0306d8c4e4879719ce258ac0a60063d2a83a 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-19  Eli Zaretskii  <eliz@gnu.org>
+
+       * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect
+       to ENOSYS.
+
 2018-05-30  Jan Hubicka  <hubicka@ucw.cz>
 
        * simple-object.c (handle_lto_debug_sections): Add rename parameter.
index 7468a1adc3dd1da2584d7324d98b9314a18f91ce..021ce488c16a74d33c0f486c3e83066cf5d4fa48 100644 (file)
@@ -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