]> git.lyx.org Git - lyx.git/blobdiff - src/support/userinfo.C
Consistent use of preprocessor guards;
[lyx.git] / src / support / userinfo.C
index 6203ef598330e74211a432eb057c7b06ebb7cd27..bbda73b0f727996370a4e8a0ace823d8bceb14e9 100644 (file)
 
 #if defined (_WIN32)
 # include "gettext.h"
-# include <lmcons.h>
 # include <windows.h>
+# include <lmcons.h>
 #else
 # include <pwd.h>
-# include <unistd.h>
+# ifdef HAVE_UNISTD_H
+#  include <unistd.h>
+# endif
+#endif
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
 #endif
-#include <sys/types.h>
 
 using std::string;