Browse Source

include stdlib.h for malloc and free
include unistd.h for IPC/network calls for ASIO
Noticed on Solaris using Sunstudio.
Trac ticket #270.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2391 e5f2f494-b856-4b98-b285-d166d9295462

Jeremy C. Reed 15 years ago
parent
commit
c729c2824a
3 changed files with 5 additions and 0 deletions
  1. 2 0
      src/lib/cc/session_unittests.cc
  2. 1 0
      src/lib/xfr/fd_share.cc
  3. 2 0
      src/lib/xfr/xfrout_client.cc

+ 2 - 0
src/lib/cc/session_unittests.cc

@@ -16,6 +16,8 @@
 
 #include "config.h"
 
+// for some IPC/network system calls in asio/detail/pipe_select_interrupter.hpp 
+#include <unistd.h>
 // XXX: the ASIO header must be included before others.  See session.cc.
 #include <asio.hpp>
 

+ 1 - 0
src/lib/xfr/fd_share.cc

@@ -20,6 +20,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/uio.h>
+#include <stdlib.h>             // for malloc and free
 #include "fd_share.h"
 
 namespace isc {

+ 2 - 0
src/lib/xfr/xfrout_client.cc

@@ -18,6 +18,8 @@
 #include <cstring>
 #include <iostream>
 
+// for some IPC/network system calls in asio/detail/pipe_select_interrupter.hpp
+#include <unistd.h>
 #include <asio.hpp>
 
 #include "fd_share.h"