]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/ipaddr.cc
update sources to v12.1.0
[ceph.git] / ceph / src / common / ipaddr.cc
index a7dedf257095beb28287644794d92eeb3b3c68f2..41add2de24e61b267ce8859aadc1e66d0cd3d6e6 100644 (file)
@@ -1,10 +1,15 @@
-#include "include/ipaddr.h"
 
-#include <sys/socket.h>
 #include <arpa/inet.h>
+#include <ifaddrs.h>
 #include <stdlib.h>
 #include <string.h>
+#if defined(__FreeBSD__)
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#endif
 
+#include "include/ipaddr.h"
 
 static void netmask_ipv4(const struct in_addr *addr,
                         unsigned int prefix_len,