mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
USE_LOCKF -> HAVE_FLOCK
This commit is contained in:
parent
26f31dcaca
commit
48b3cd0f3f
1 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue