chiark / gitweb /
resolved: make use of union in_addr_union in resolved, too
[elogind.git] / src / resolve / resolved.h
index 984edc76c1c6f0e07d724d38c57d3e45a565cad7..48b361db5733269c2babdac99ad10f97f2bb6531 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "util.h"
 #include "list.h"
+#include "socket-util.h"
 
 typedef struct Address Address;
 typedef struct Manager Manager;
@@ -33,10 +34,7 @@ typedef struct Manager Manager;
 struct Address {
         unsigned char family;
 
-        union {
-                struct in_addr in;
-                struct in6_addr in6;
-        } in_addr;
+        union in_addr_union in_addr;
 
         LIST_FIELDS(Address, addresses);
 };