]> git.lyx.org Git - features.git/commitdiff
Prevent unix-specific headers from breaking compilation on Windows.
authorAngus Leeming <leeming@lyx.org>
Tue, 19 Apr 2005 12:12:47 +0000 (12:12 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 19 Apr 2005 12:12:47 +0000 (12:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9832 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/ChangeLog
src/support/pch.h

index 07f36f8039d65f11a75be330556696cf8f2f7d0f..80bb593a6047221de1bf33d3ae955145c49178aa 100644 (file)
@@ -1,4 +1,9 @@
- 2005-04-17  Angus Leeming  <leeming@lyx.org>
+2005-04-19  Angus Leeming  <leeming@lyx.org>
+
+       * pch.h: protect unix-specific headers from breaking compilation
+       on Windows.
+
+2005-04-17  Angus Leeming  <leeming@lyx.org>
  
        * filetools.C (MakeDisplayPath): invoke os::external_path before
        returning path.
index 686c524382b78f4ab98b822eed0544688d19b370..dffc65e01eb1bf09b116103bcc92560be9dfdde5 100644 (file)
 #include <boost/utility.hpp>
 
 #include <fcntl.h>
-#include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/types.h>
-#include <sys/un.h>
-#include <sys/wait.h>
 #include <time.h>
-#ifdef HAVE_UNISTD_H
+#ifndef _WIN32
+# include <sys/socket.h>
+# include <sys/un.h>
+# include <sys/wait.h>
 # include <unistd.h>
 #endif