]> git.lyx.org Git - lyx.git/blobdiff - src/support/unlink.C
make "make distcheck" work
[lyx.git] / src / support / unlink.C
index e3ca60afe100f903f5c3561378b10d6e9ee9f430..648bcca5632614ebeb14275feb3eef581cc119b9 100644 (file)
 
 #include <config.h>
 
-#include <unistd.h>
+#include "support/lyxlib.h"
 
-#include "lyxlib.h"
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 
 int lyx::support::unlink(std::string const & pathname)
 {