]> git.lyx.org Git - lyx.git/blobdiff - src/support/socktools.C
Consistent use of preprocessor guards;
[lyx.git] / src / support / socktools.C
index 4b4edd60f4ddd50a76ab68619993db5171092411..23a0b5d011143968ec9a9f6c58e2fdff3e1cdd74 100644 (file)
@@ -18,7 +18,9 @@
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <fcntl.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 
 #include <cerrno>