aboutsummaryrefslogtreecommitdiffstats
path: root/lib/in46_addr.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/in46_addr.h')
-rw-r--r--lib/in46_addr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/in46_addr.h b/lib/in46_addr.h
index ff26521..2b3755b 100644
--- a/lib/in46_addr.h
+++ b/lib/in46_addr.h
@@ -4,13 +4,17 @@
#include "../gtp/pdp.h"
+#include "config.h"
+
/* a simple wrapper around an in6_addr to also contain the length of the address,
* thereby implicitly indicating the address family of the address */
struct in46_addr {
uint8_t len;
union {
struct in_addr v4;
+#if defined(BUILD_IPv6)
struct in6_addr v6;
+#endif
};
};