diff options
author | Marcus Boerger <helly@php.net> | 2002-11-11 23:40:33 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-11-11 23:40:33 +0000 |
commit | b8696890cac133a26d696e753acadfa0f31cd067 (patch) | |
tree | 4e7ddbff26d6eeb2c66e7f16ae8ff846b33d77d0 /ext/standard/flock_compat.c | |
parent | 6a14b16e3411c5edd865fbcc550e2e129e7714db (diff) | |
download | php-git-b8696890cac133a26d696e753acadfa0f31cd067.tar.gz |
make flock() a function again when it is missing
Diffstat (limited to 'ext/standard/flock_compat.c')
-rw-r--r-- | ext/standard/flock_compat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/standard/flock_compat.c b/ext/standard/flock_compat.c index 2f03bcc856..92d2590662 100644 --- a/ext/standard/flock_compat.c +++ b/ext/standard/flock_compat.c @@ -41,7 +41,10 @@ #endif #ifndef HAVE_FLOCK -/* defines flock as php_flock */ +PHPAPI int php_flock(int fd, int operation) +{ + return php_flock(fd, operation); +} #endif /* !defined(HAVE_FLOCK) */ PHPAPI int php_flock(int fd, int operation) |