Skip to content

Commit

Permalink
Export flock for win32
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Dec 19, 2003
1 parent 331dc79 commit 4084ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion win32/flock.c
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion win32/flock.h
Expand Up @@ -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.