Browse Source

[master] Add (guarded) inclusion of unistd.h for sunstudio build

Jelte Jansen 14 years ago
parent
commit
1781090510
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/tools/badpacket/scan.cc

+ 4 - 0
tests/tools/badpacket/scan.cc

@@ -21,6 +21,10 @@
 
 #include <config.h>
 
+// on sunstudio, asio.hpp needs unistd.h for pipe() to be defined
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 #include <asio.hpp>
 
 #include <asiolink/io_address.h>