This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix previous change in filestuff.c
- From: Eli Zaretskii <eliz at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 20 Nov 2018 17:24:59 -0000
- Subject: [binutils-gdb] Fix previous change in filestuff.c
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2fa1b3191e449f1efca31a654920a6bd3a1f4f28
commit 2fa1b3191e449f1efca31a654920a6bd3a1f4f28
Author: Eli Zaretskii <eliz@gnu.org>
Date: Tue Nov 20 19:23:51 2018 +0200
Fix previous change in filestuff.c
gdb/ChangeLog:
* common/filestuff.c (O_NOINHERIT): Define if not defined.
Diff:
---
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 <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