summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/pdf-mod-info.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/pdf-mod-info.cc b/examples/pdf-mod-info.cc
index e8defa32..8bd9f5d6 100644
--- a/examples/pdf-mod-info.cc
+++ b/examples/pdf-mod-info.cc
@@ -8,6 +8,7 @@
#include <iostream>
#include <string.h>
#include <stdlib.h>
+#include <stdio.h>
#ifdef _WIN32
#include <Windows.h>
#include <direct.h>
@@ -219,7 +220,7 @@ int main(int argc, char* argv[])
try
{
- (void) unlink(fl_out);
+ (void) remove(fl_out);
QUtil::os_wrapper("rename " + fl_tmp + " " + std::string(fl_out),
rename(fl_tmp.c_str(), fl_out));
}