]> granicus.if.org Git - php/commitdiff
make flock() a function again when it is missing
authorMarcus Boerger <helly@php.net>
Mon, 11 Nov 2002 23:40:33 +0000 (23:40 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 11 Nov 2002 23:40:33 +0000 (23:40 +0000)
ext/standard/flock_compat.c
ext/standard/flock_compat.h

index 2f03bcc85629911f58a09782fc3fbb67a889a217..92d2590662d8c4010d4c1c569d57d293cd69f92f 100644 (file)
 #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)
index 457e469eaaf6f4b6d51e2f237c41557a72d11911..51d186001588cab9b42d8072727150bfa53192e6 100644 (file)
@@ -32,7 +32,7 @@ PHPAPI int php_flock(int fd, int operation);
 #      define LOCK_EX 2
 #      define LOCK_NB 4
 #      define LOCK_UN 8
-#   define flock php_flock
+PHPAPI int flock(int fd, int operation);
 #endif
 
 #ifdef PHP_WIN32