#include "support/lyxlib.h"
-#include <sys/types.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
#include <csignal>
#ifdef _WIN32
#include "os.h"
#include <windows.h>
-#include <errno.h>
+#include <cerrno>
using std::endl;
#endif //_WIN32