]> git.lyx.org Git - lyx.git/blobdiff - src/support/forkedcontr.h
Detect mode_t for safe use of chmod, and for scons/msvc
[lyx.git] / src / support / forkedcontr.h
index 2eb43990cc596f5c550ff626202fabf471c161e4..7f55c798d06e15bfdcdc77b045a995e5c286c5fd 100644 (file)
 
 #include <boost/shared_ptr.hpp>
 
-#include <sys/types.h> // needed for pid_t
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
 
 #include <list>
 #include <string>
 #include <vector>
 
-// pid_t isn't defined by the stdlibs that ship with MSVC.
-#if defined (_WIN32) && defined(_MSC_VER)
-typedef int pid_t;
-#endif
-
 
 namespace lyx {
 namespace support {