From: Hallvard Furuseth Date: Wed, 4 Nov 1998 19:43:51 +0000 (+0000) Subject: USE_LOCKF -> HAVE_FLOCK X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~1220 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=48b3cd0f3f36521affacd966c6775a1a2eee88da;p=openldap USE_LOCKF -> HAVE_FLOCK --- diff --git a/servers/slapd/lock.c b/servers/slapd/lock.c index aee7c31cfb..47f09cf546 100644 --- a/servers/slapd/lock.c +++ b/servers/slapd/lock.c @@ -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 );