summaryrefslogtreecommitdiff
path: root/iputils_common.h
diff options
context:
space:
mode:
authorPetr Vorel <petr.vorel@gmail.com>2019-06-09 22:57:21 +0200
committerSami Kerola <kerolasa@iki.fi>2019-06-10 21:17:30 +0100
commit45257ac4ad8a68763a3699b2d47555b5cf279452 (patch)
tree7a1c579e78ccbafc8b657c59fa24efc51d441355 /iputils_common.h
parent81d0f03d53138b3e100f60a50da50ec946ca866c (diff)
downloadiputils-45257ac4ad8a68763a3699b2d47555b5cf279452.tar.gz
common: move various fallback definitions into iputils_common.h
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Diffstat (limited to 'iputils_common.h')
-rw-r--r--iputils_common.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/iputils_common.h b/iputils_common.h
index 977365a..97f9572 100644
--- a/iputils_common.h
+++ b/iputils_common.h
@@ -24,6 +24,31 @@
# define _(Text) Text
#endif
+#ifdef USE_IDN
+# include <idn2.h>
+
+# include <netdb.h>
+# ifndef AI_IDN
+# define AI_IDN 0x0040
+# endif
+# ifndef AI_CANONIDN
+# define AI_CANONIDN 0x0080
+# endif
+# ifndef NI_IDN
+# define NI_IDN 32
+# endif
+#endif /* #ifdef USE_IDN */
+
+#ifndef SOL_IPV6
+# define SOL_IPV6 IPPROTO_IPV6
+#endif
+#ifndef IP_PMTUDISC_DO
+# define IP_PMTUDISC_DO 2
+#endif
+#ifndef IPV6_PMTUDISC_DO
+# define IPV6_PMTUDISC_DO 2
+#endif
+
#ifdef HAVE_ERROR_H
# include <error.h>
#else