summaryrefslogtreecommitdiffstats
path: root/include/c.h
diff options
context:
space:
mode:
authorDavidlohr Bueso2011-03-22 14:42:09 +0100
committerKarel Zak2011-03-29 10:35:40 +0200
commit7cf78990fc3ff7265c2dcb9606b63aeb0d9f8bd1 (patch)
tree377ba96604f6e31b66beaca3e55040d86f4789ff /include/c.h
parentlibmount: fix leak in sample program (diff)
downloadkernel-qcow2-util-linux-7cf78990fc3ff7265c2dcb9606b63aeb0d9f8bd1.tar.gz
kernel-qcow2-util-linux-7cf78990fc3ff7265c2dcb9606b63aeb0d9f8bd1.tar.xz
kernel-qcow2-util-linux-7cf78990fc3ff7265c2dcb9606b63aeb0d9f8bd1.zip
include: [c.h] add definition wrappers for old libc versions
Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/c.h')
-rw-r--r--include/c.h12
1 files changed, 11 insertions, 1 deletions
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 */