Browse Source

[trac554] add some lowlevel includes needed for sunstudio

These should probably really be done by asio.hpp
Jelte Jansen 14 years ago
parent
commit
76a5b79fe8

+ 6 - 0
src/lib/asiolink/dns_service.cc

@@ -14,6 +14,12 @@
 
 #include <config.h>
 
+#include <unistd.h>             // for some IPC/network system calls
+#include <sys/socket.h>
+#include <netinet/in.h>
+
+#include <asiolink/dns_service.h>
+
 #include <asiolink/io_service.h>
 
 #include <asio/ip/address.hpp>

+ 4 - 0
src/lib/asiolink/interval_timer.cc

@@ -14,6 +14,10 @@
 
 #include <config.h>
 
+#include <unistd.h>             // for some IPC/network system calls
+#include <sys/socket.h>
+#include <netinet/in.h>
+
 #include <asio.hpp>
 
 #include <exceptions/exceptions.h>

+ 4 - 0
src/lib/asiolink/io_service.cc

@@ -14,6 +14,10 @@
 
 #include <config.h>
 
+#include <unistd.h>             // for some IPC/network system calls
+#include <sys/socket.h>
+#include <netinet/in.h>
+
 #include <asio.hpp>
 
 #include <asiolink/io_service.h>

+ 5 - 0
src/lib/asiolink/recursive_query.cc

@@ -14,6 +14,11 @@
 
 #include <config.h>
 
+#include <unistd.h>             // for some IPC/network system calls
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <stdlib.h>
+
 #include <asio/ip/address.hpp>
 
 #include <asio.hpp>

+ 4 - 0
src/lib/asiolink/tcp_server.cc

@@ -16,6 +16,10 @@
 
 #include <boost/shared_array.hpp>
 
+#include <unistd.h>             // for some IPC/network system calls
+#include <sys/socket.h>
+#include <netinet/in.h>
+
 #include <asio.hpp>
 
 #include <log/dummylog.h>

+ 4 - 0
src/lib/asiolink/udp_server.cc

@@ -16,6 +16,10 @@
 
 #include <boost/shared_array.hpp>
 
+#include <unistd.h>             // for some IPC/network system calls
+#include <sys/socket.h>
+#include <netinet/in.h>
+
 #include <asio.hpp>
 
 #include <log/dummylog.h>