diff options
author | Eli Zaretskii <eliz@gnu.org> | 2018-11-20 19:23:51 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2018-11-20 19:23:51 +0200 |
commit | 2fa1b3191e449f1efca31a654920a6bd3a1f4f28 (patch) | |
tree | f48516d41b6319b3624862b716abc45873a23471 /gdb | |
parent | 970d89d8fdd84b31decaf3bd84e785aad057ea32 (diff) | |
download | gdb-2fa1b3191e449f1efca31a654920a6bd3a1f4f28.zip gdb-2fa1b3191e449f1efca31a654920a6bd3a1f4f28.tar.gz gdb-2fa1b3191e449f1efca31a654920a6bd3a1f4f28.tar.bz2 |
Fix previous change in filestuff.c
gdb/ChangeLog:
* common/filestuff.c (O_NOINHERIT): Define if not defined.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 1 | ||||
-rw-r--r-- | gdb/common/filestuff.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5fe8267..2b577d5 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 <john@darrington.wattle.id.au> diff --git a/gdb/common/filestuff.c b/gdb/common/filestuff.c index 3fa035a..0db5c69 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 |