From 2fa1b3191e449f1efca31a654920a6bd3a1f4f28 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 20 Nov 2018 19:23:51 +0200 Subject: [PATCH] Fix previous change in filestuff.c gdb/ChangeLog: * common/filestuff.c (O_NOINHERIT): Define if not defined. --- gdb/ChangeLog | 1 + gdb/common/filestuff.c | 4 ++++ 2 files changed, 5 insertions(+) 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 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 -- 2.7.4