From: Karel Zak Date: Fri, 11 Feb 2011 09:49:50 +0000 (+0100) Subject: include: [c.h]: add fallback for old libs without O_CLOEXEC X-Git-Tag: v2.20-rc1~576 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4799c95f943bd947c02f754da121974b4b34697d;p=thirdparty%2Futil-linux.git include: [c.h]: add fallback for old libs without O_CLOEXEC Signed-off-by: Karel Zak --- diff --git a/include/c.h b/include/c.h index e52514345b..8154638815 100644 --- a/include/c.h +++ b/include/c.h @@ -149,5 +149,9 @@ prog_inv_sh_nm_from_file(char *f, char stripext) # endif #endif +/* very old glibc (2.3) */ +#ifndef O_CLOEXEC +#define O_CLOEXEC 0 +#endif #endif /* UTIL_LINUX_C_H */