Browse Source

To compile ccan under DragonFly BSD some additional includes are required.

Andreas Schlick 15 years ago
parent
commit
418cb41273
5 changed files with 6 additions and 0 deletions
  1. 1 0
      ccan/antithread/antithread.c
  2. 1 0
      ccan/failtest/failtest.c
  3. 2 0
      ccan/iscsi/socket.c
  4. 1 0
      ccan/net/net.c
  5. 1 0
      tools/tools.c

+ 1 - 0
ccan/antithread/antithread.c

@@ -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>

+ 1 - 0
ccan/failtest/failtest.c

@@ -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>

+ 2 - 0
ccan/iscsi/socket.c

@@ -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"

+ 1 - 0
ccan/net/net.c

@@ -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,

+ 1 - 0
tools/tools.c

@@ -15,6 +15,7 @@
 #include <err.h>
 #include <unistd.h>
 #include <assert.h>
+#include <signal.h>
 #include "tools.h"
 
 static const char *tmpdir = NULL;