]> git.lyx.org Git - lyx.git/blobdiff - src/support/unlink.C
make "make distcheck" work
[lyx.git] / src / support / unlink.C
index ef3b52033269429a3aaab2e34f59789c42133739..648bcca5632614ebeb14275feb3eef581cc119b9 100644 (file)
@@ -1,10 +1,22 @@
+/**
+ * \file unlink.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ *
+ * 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::unlink(string const & pathname)
+int lyx::support::unlink(std::string const & pathname)
 {
        return ::unlink(pathname.c_str());
 }