aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2018-11-20 19:23:51 +0200
committerEli Zaretskii <eliz@gnu.org>2018-11-20 19:23:51 +0200
commit2fa1b3191e449f1efca31a654920a6bd3a1f4f28 (patch)
treef48516d41b6319b3624862b716abc45873a23471 /gdb/common
parent970d89d8fdd84b31decaf3bd84e785aad057ea32 (diff)
downloadgdb-2fa1b3191e449f1efca31a654920a6bd3a1f4f28.zip
gdb-2fa1b3191e449f1efca31a654920a6bd3a1f4f28.tar.gz
gdb-2fa1b3191e449f1efca31a654920a6bd3a1f4f28.tar.bz2
Fix previous change in filestuff.c
gdb/ChangeLog: * common/filestuff.c (O_NOINHERIT): Define if not defined.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/filestuff.c4
1 files changed, 4 insertions, 0 deletions
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