]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test_ipaddr.cc: FreeBSD requires other headers to do IP_ADDR stuff
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 18 May 2016 12:18:54 +0000 (14:18 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 25 May 2016 10:13:00 +0000 (12:13 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/test_ipaddr.cc

index 240a3a75b56dac3cedb3347336952ee8ebe82f7c..9a3d43ea6d430e21312d702f3afd0563e07a23b5 100644 (file)
@@ -1,6 +1,10 @@
 #include "include/ipaddr.h"
 #include "gtest/gtest.h"
 
+#if defined(__FreeBSD__)
+#include <sys/types.h>
+#include <sys/socket.h>
+#endif
 #include <arpa/inet.h>
 
 static void ipv4(struct sockaddr_in *addr, const char *s) {