Re: cvs: php4 /ext/standard flock_compat.c flock_compat.h

From: Date: Tue, 12 Nov 2002 00:18:03 +0000
Subject: Re: cvs: php4 /ext/standard flock_compat.c flock_compat.h
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-90827@lists.php.net to get a copy of this message
On Tuesday 12 November 2002 00:40, Marcus Boerger wrote: > helly Mon Nov 11 18:40:33 2002 EDT > > Modified files: > /php4/ext/standard flock_compat.c flock_compat.h > Log: > make flock() a function again when it is missing > #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) */ Erm, this doesn't look right and gives the following compile error: Compiling... file.c flock_compat.c c:\php4build\php4-new\ext\standard\flock_compat.c(125) : error C2084: function 'int __cdecl php_flock(int ,in t )' already has a body mod_files.c Error executing cl.exe. php-cgi.exe - 1 error(s), 0 warning(s) Edin

« previous php.dev (#90827) next »