aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-11-29 19:26:00 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-11-29 19:26:00 +0000
commit421ecf992e5c8971c4b47b39e71bc622527b859d (patch)
tree7aff1ac0ee3c3d3d86ed633279cb4bea0c6568ff /libgo
parent8afa2bfbdc60088acd7f199245244890a6e7773e (diff)
downloadgcc-421ecf992e5c8971c4b47b39e71bc622527b859d.zip
gcc-421ecf992e5c8971c4b47b39e71bc622527b859d.tar.gz
gcc-421ecf992e5c8971c4b47b39e71bc622527b859d.tar.bz2
runtime: If O_CLOEXEC is not defined, define it as 0.
From-SVN: r181814
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/thread-linux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/runtime/thread-linux.c b/libgo/runtime/thread-linux.c
index b51f497..c08cc0d 100644
--- a/libgo/runtime/thread-linux.c
+++ b/libgo/runtime/thread-linux.c
@@ -62,6 +62,10 @@ runtime_futexwakeup(uint32 *addr, uint32 cnt)
*(int32*)0x1006 = 0x1006;
}
+#ifndef O_CLOEXEC
+#define O_CLOEXEC 0
+#endif
+
static int32
getproccount(void)
{