chiark / gitweb /
shared: split out in_addr related calls from socket-util.[ch] into its private in...
[elogind.git] / src / resolve / resolved.h
index 984edc76c1c6f0e07d724d38c57d3e45a565cad7..ad49c63a419ea9b644895772fb461b4fe5606062 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "util.h"
 #include "list.h"
+#include "in-addr-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);
 };