To compile ccan under DragonFly BSD some additional includes are required.
authorAndreas Schlick <schlick@lavabit.com>
Sat, 2 Apr 2011 01:13:52 +0000 (11:43 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 2 Apr 2011 01:13:52 +0000 (11:43 +1030)
ccan/antithread/antithread.c
ccan/failtest/failtest.c
ccan/iscsi/socket.c
ccan/net/net.c
tools/tools.c

index e3f3bac92277379149ff5985509da319389f7e3a..f077221ed444305a12dbde2d4a1d54a2208a8be2 100644 (file)
@@ -6,6 +6,7 @@
 #include <sys/mman.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+#include <signal.h>
 #include <errno.h>
 #include <assert.h>
 #include <err.h>
index 30903e3f3c4ecf232d474e2d09bc82f5238e777c..851f2eabf043e4e3f8fa8c53cfe2056431a27220 100644 (file)
@@ -12,6 +12,7 @@
 #include <sys/wait.h>
 #include <sys/stat.h>
 #include <sys/time.h>
+#include <signal.h>
 #include <assert.h>
 #include <ccan/read_write_all/read_write_all.h>
 #include <ccan/failtest/failtest_proto.h>
index ce3526e1e12945b997b86716f943d9e69f7bb38b..17c6ffee3b0370af99997fd127459b0fc8a51796 100644 (file)
@@ -25,6 +25,8 @@
 #include <netinet/in.h>
 #include <poll.h>
 #include <sys/ioctl.h>
+#include <sys/types.h>
+#include <sys/socket.h>
 #include <arpa/inet.h>
 #include "iscsi.h"
 #include "iscsi-private.h"
index 8bcaa937c8955e249173abdff234d9e19ac4a6b6..816c8eef98872a71b8a9a54d9e83de4e896dcd0f 100644 (file)
@@ -9,6 +9,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <stdbool.h>
+#include <netinet/in.h>
 
 struct addrinfo *net_client_lookup(const char *hostname,
                                   const char *service,
index 09cc3d3a17b362b324b99d5ef20fc922d885ff36..24e27ba1bb1e843740943e5ecefd69242c9a6389 100644 (file)
@@ -15,6 +15,7 @@
 #include <err.h>
 #include <unistd.h>
 #include <assert.h>
+#include <signal.h>
 #include "tools.h"
 
 static const char *tmpdir = NULL;