From: Davidlohr Bueso Date: Tue, 22 Mar 2011 13:42:09 +0000 (-0300) Subject: include: [c.h] add definition wrappers for old libc versions X-Git-Tag: v2.20-rc1~423 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cf78990fc3ff7265c2dcb9606b63aeb0d9f8bd1;p=thirdparty%2Futil-linux.git include: [c.h] add definition wrappers for old libc versions Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak --- diff --git a/include/c.h b/include/c.h index 3e5d415b45..70f403c2bb 100644 --- a/include/c.h +++ b/include/c.h @@ -195,9 +195,19 @@ prog_inv_sh_nm_from_file(char *f, char stripext) # endif #endif -/* very old glibc (2.3) */ +/* + * Fallback defines for old versions of glibc + */ #ifndef O_CLOEXEC #define O_CLOEXEC 0 #endif +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0x0020 +#endif + +#ifndef IUTF8 +#define IUTF8 0040000 +#endif + #endif /* UTIL_LINUX_C_H */