summaryrefslogtreecommitdiffstats
path: root/include/c.h
diff options
context:
space:
mode:
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 */