]> git.lyx.org Git - lyx.git/blobdiff - src/support/os2_defines.h
make "make distcheck" work
[lyx.git] / src / support / os2_defines.h
index 58366418dcb7518aee10a21021bc5685ebace3c8..b960155261d6fedf0c06f90c569f019c00542f7e 100644 (file)
@@ -1,14 +1,11 @@
 /* -*- C++ -*- */
-/* This file is part of
-* ======================================================
-*
-*           LyX, The Document Processor
-*
-*           Copyright 1995 Matthias Ettrich
-*           Copyright 1995-2001 The LyX Team.
-*
-* ======================================================
- A few prototypes and definitions needed for OS/2 */
+/**
+ * \file os2_defines.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * Prototypes and definitions needed for OS/2.
+ */
 
 #ifndef OS2_DEFINES_H
 #define OS2_DEFINES_H
@@ -26,7 +23,9 @@ inline int readlink(const char *, char *, size_t) {return -1;}
 #define readlink(s, t, l) (-1)
 #endif
 #include <process.h>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 #include <X11/Xlocale.h>
 /* #include <malloc.h> */
 #define lstat stat