]> git.lyx.org Git - lyx.git/blobdiff - src/client/pch.h
fix bug 2089: Touching Navigate menu crashes Lyx when a TOC inset is in a section...
[lyx.git] / src / client / pch.h
index 2634b6610c357e49fa0330c6c788608cb8d5cacf..8eefad995f52ae22dde0976c025130503893e5bf 100644 (file)
@@ -8,10 +8,16 @@
 #include <boost/scoped_ptr.hpp>
 
 #include <fcntl.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 
-#include <sys/select.h>
-#include <sys/socket.h>
+#ifdef HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
 #include <sys/types.h>
 #include <sys/un.h>