From 7cf78990fc3ff7265c2dcb9606b63aeb0d9f8bd1 Mon Sep 17 00:00:00 2001 From: Davidlohr Bueso Date: Tue, 22 Mar 2011 10:42:09 -0300 Subject: include: [c.h] add definition wrappers for old libc versions Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak --- include/c.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/c.h') diff --git a/include/c.h b/include/c.h index 3e5d415b4..70f403c2b 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 */ -- cgit v1.2.3-55-g7522