mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
USE_LOCKF -> HAVE_FLOCK
This commit is contained in:
parent
26f31dcaca
commit
48b3cd0f3f
@ -53,10 +53,10 @@ int
|
||||
lock_fclose( FILE *fp, FILE *lfp )
|
||||
{
|
||||
/* unlock */
|
||||
#ifdef USE_LOCKF
|
||||
lockf( fileno( lfp ), F_ULOCK, 0 );
|
||||
#else
|
||||
#ifdef HAVE_FLOCK
|
||||
flock( fileno( lfp ), LOCK_UN );
|
||||
#else
|
||||
lockf( fileno( lfp ), F_ULOCK, 0 );
|
||||
#endif
|
||||
fclose( lfp );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user