Fix previous change in filestuff.c
gdb/ChangeLog: * common/filestuff.c (O_NOINHERIT): Define if not defined.
This commit is contained in:
parent
970d89d8fd
commit
2fa1b3191e
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue