]> git.lyx.org Git - lyx.git/blobdiff - src/support/tempname.C
make "make distcheck" work
[lyx.git] / src / support / tempname.C
index 9e78525b82f43961bac7f848273412d92e45ae3d..975e44362396bfb7d4b331818681f13f5fd06bc8 100644 (file)
@@ -21,7 +21,9 @@
 #include <boost/scoped_array.hpp>
 
 #include <cstdlib>
-#include <unistd.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 
 #if !defined(HAVE_MKSTEMP) && defined(HAVE_MKTEMP)
 # include <fcntl.h>