OSDN Git Service

runtime: If O_CLOEXEC is not defined, define it as 0.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Nov 2011 19:26:00 +0000 (19:26 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Nov 2011 19:26:00 +0000 (19:26 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181814 138bc75d-0d04-0410-961f-82ee72b054a4

libgo/runtime/thread-linux.c

index b51f497..c08cc0d 100644 (file)
@@ -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)
 {