Permalink
Browse files

Export flock for win32

  • Loading branch information...
1 parent 331dc79 commit 4084ed9edf620deccddc21a2fc543fcc18ac7158 @wez wez committed Dec 19, 2003
Showing with 3 additions and 2 deletions.
  1. +2 −1 win32/flock.c
  2. +1 −1 win32/flock.h
View
3 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;
View
2 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);

0 comments on commit 4084ed9

Please sign in to comment.