[Psi-Devel] [PATCH] Fix iris compile on linux

Matt Newell newellm at blur.com
Tue Jul 12 10:37:24 PDT 2011


Without this close is not declared.  man page says close needs unistd.h, I 
have no idea if this is problematic on other unixes, but i doubt it.


Matt

diff --git a/src/irisnet/corelib/netinterface_unix.cpp 
b/src/irisnet/corelib/netinterface_unix.cpp
index 6565d6d..2e45ef7 100644
--- a/src/irisnet/corelib/netinterface_unix.cpp
+++ b/src/irisnet/corelib/netinterface_unix.cpp
@@ -33,6 +33,7 @@
 #include <net/route.h>
 #include <netinet/in.h>
 #include <errno.h>
+#include <unistd.h>
 
 // for solaris
 #ifndef SIOCGIFCONF


More information about the Psi-Devel mailing list