Fix previous change in filestuff.c

gdb/ChangeLog:

	* common/filestuff.c (O_NOINHERIT): Define if not defined.
This commit is contained in:
Eli Zaretskii 2018-11-20 19:23:51 +02:00
parent 970d89d8fd
commit 2fa1b3191e
2 changed files with 5 additions and 0 deletions

View 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>

View File

@ -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