From: Eli Zaretskii Date: Tue, 20 Nov 2018 17:23:51 +0000 (+0200) Subject: Fix previous change in filestuff.c X-Git-Tag: users/ARM/embedded-binutils-master-2018q4~148 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fa1b3191e449f1efca31a654920a6bd3a1f4f28;p=thirdparty%2Fbinutils-gdb.git Fix previous change in filestuff.c gdb/ChangeLog: * common/filestuff.c (O_NOINHERIT): Define if not defined. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5fe8267e213..2b577d50ba2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/common/filestuff.c b/gdb/common/filestuff.c index 3fa035a63dd..0db5c6936bc 100644 --- a/gdb/common/filestuff.c +++ b/gdb/common/filestuff.c @@ -44,6 +44,10 @@ #define O_CLOEXEC 0 #endif +#ifndef O_NOINHERIT +#define O_NOINHERIT 0 +#endif + #ifndef SOCK_CLOEXEC #define SOCK_CLOEXEC 0 #endif