]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix previous change in filestuff.c
authorEli Zaretskii <eliz@gnu.org>
Tue, 20 Nov 2018 17:23:51 +0000 (19:23 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 20 Nov 2018 17:23:51 +0000 (19:23 +0200)
gdb/ChangeLog:

* common/filestuff.c (O_NOINHERIT): Define if not defined.

gdb/ChangeLog
gdb/common/filestuff.c

index 5fe8267e213ac30a36233d3ab6812cc165040850..2b577d50ba2d528e49bda07776cfd2e8d25bb2dd 100644 (file)
@@ -3,6 +3,7 @@
        * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
        with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
        to MinGW fixed by Gnulib.
+       (O_NOINHERIT): Define if not defined.
 
 2018-11-19  John Darrington <john@darrington.wattle.id.au>
 
index 3fa035a63dd66b26fd094dbf89c141f41d4d7341..0db5c6936bc3431c40640d1c3bf53ba0f7fcd455 100644 (file)
 #define O_CLOEXEC 0
 #endif
 
+#ifndef O_NOINHERIT
+#define O_NOINHERIT 0
+#endif
+
 #ifndef SOCK_CLOEXEC
 #define SOCK_CLOEXEC 0
 #endif