summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-19 23:18:14 +0000
committerWez Furlong <wez@php.net>2003-12-19 23:18:14 +0000
commit4084ed9edf620deccddc21a2fc543fcc18ac7158 (patch)
tree47eb1d26b4a8194cfe95f6f55ffcb8a993746115
parent331dc79254566ee777f6af7be9232f1f647c9474 (diff)
downloadphp-git-4084ed9edf620deccddc21a2fc543fcc18ac7158.tar.gz
Export flock for win32
-rw-r--r--win32/flock.c3
-rw-r--r--win32/flock.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/win32/flock.c b/win32/flock.c
index cc9d409784..e659de6597 100644
--- a/win32/flock.c
+++ b/win32/flock.c
@@ -46,12 +46,13 @@
* Lift a leg, Yunie. Luv ya forever!!!!
*/
+#include "php.h"
#include <windows.h>
#include <io.h>
#include <errno.h>
#include "flock.h"
-int flock(int fd, int op)
+PHPAPI int flock(int fd, int op)
{
HANDLE hdl = (HANDLE) _get_osfhandle(fd);
DWORD low = 1, high = 0;
diff --git a/win32/flock.h b/win32/flock.h
index fe07adf954..d228e855dc 100644
--- a/win32/flock.h
+++ b/win32/flock.h
@@ -8,4 +8,4 @@
#define LOCK_NB 4
#define LOCK_UN 8
-extern int flock(int fd, int op);
+PHPAPI int flock(int fd, int op);