]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include: [c.h] add definition wrappers for old libc versions
authorDavidlohr Bueso <dave@gnu.org>
Tue, 22 Mar 2011 13:42:09 +0000 (10:42 -0300)
committerKarel Zak <kzak@redhat.com>
Tue, 29 Mar 2011 08:35:40 +0000 (10:35 +0200)
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h

index 3e5d415b4519f8b3eca46653d25df133d1bb668f..70f403c2bb10ea4af4fa77bc2b04ef39854f9485 100644 (file)
@@ -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 */