]> git.lyx.org Git - lyx.git/blobdiff - src/support/unlink.C
make "make distcheck" work
[lyx.git] / src / support / unlink.C
index 51569cc656678c9073db7845b0b50cf811a68f8b..648bcca5632614ebeb14275feb3eef581cc119b9 100644 (file)
@@ -5,16 +5,18 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #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(string const & pathname)
+int lyx::support::unlink(std::string const & pathname)
 {
        return ::unlink(pathname.c_str());
 }