]> git.lyx.org Git - lyx.git/blobdiff - src/pch.h
Fix encoding of converters path and arguments
[lyx.git] / src / pch.h
index 010094feb493da6bc351e206dc080117b789e9ee..05a5d0419fed87eff49fbc5687ac666469c81a4f 100644 (file)
--- a/src/pch.h
+++ b/src/pch.h
 #include <boost/signals/connection.hpp>
 #include <boost/signal.hpp>
 #include <boost/signals/trackable.hpp>
-#include <boost/test/detail/nullstream.hpp>
+#include <boost/version.hpp>
+
+#if BOOST_VERSION < 103300
+# include <boost/test/detail/nullstream.hpp>
+#else
+# include <boost/test/utils/nullstream.hpp>
+#endif
+
 #include <boost/tokenizer.hpp>
 #include <boost/tuple/tuple.hpp>
 #include <boost/utility.hpp>
 
 #include <fcntl.h>
-#include <sys/select.h>
-#include <sys/stat.h>
-#include <sys/time.h>
+#ifdef HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
 
 #include <algorithm>
 #include <cerrno>
@@ -51,5 +64,6 @@
 #include <stack>
 #include <string>
 #include <utility>
+
 #include <utime.h>
 #include <vector>