From: Ian Lance Taylor Date: Tue, 29 Nov 2011 19:26:00 +0000 (+0000) Subject: runtime: If O_CLOEXEC is not defined, define it as 0. X-Git-Tag: releases/gcc-4.7.0~1888 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=421ecf992e5c8971c4b47b39e71bc622527b859d;p=thirdparty%2Fgcc.git runtime: If O_CLOEXEC is not defined, define it as 0. From-SVN: r181814 --- diff --git a/libgo/runtime/thread-linux.c b/libgo/runtime/thread-linux.c index b51f4970d258..c08cc0dba295 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) {