summaryrefslogtreecommitdiff
path: root/src/include/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port.h')
-rw-r--r--src/include/port.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/port.h b/src/include/port.h
index 3a40f0ca86..96513b454e 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -50,6 +50,11 @@ extern int pgunlink(const char *path);
#endif
#ifdef WIN32
+
+/* open() replacement to allow delete of held files */
+extern int win32_open(const char*,int,...);
+#define open(a,b,...) win32_open(a,b,##__VA_ARGS__)
+
extern int copydir(char *fromdir, char *todir);
/* Missing rand functions */