projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
970d89d
)
Fix previous change in filestuff.c
author
Eli Zaretskii
<eliz@gnu.org>
Tue, 20 Nov 2018 17:23:51 +0000
(19:23 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Tue, 20 Nov 2018 17:23:51 +0000
(19:23 +0200)
gdb/ChangeLog:
* common/filestuff.c (O_NOINHERIT): Define if not defined.
gdb/ChangeLog
patch
|
blob
|
history
gdb/common/filestuff.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 5fe8267e213ac30a36233d3ab6812cc165040850..2b577d50ba2d528e49bda07776cfd2e8d25bb2dd 100644
(file)
--- 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 3fa035a63dd66b26fd094dbf89c141f41d4d7341..0db5c6936bc3431c40640d1c3bf53ba0f7fcd455 100644
(file)
--- 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