]> git.sur5r.net Git - openldap/commitdiff
USE_LOCKF -> HAVE_FLOCK
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 4 Nov 1998 19:43:51 +0000 (19:43 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 4 Nov 1998 19:43:51 +0000 (19:43 +0000)
servers/slapd/lock.c

index aee7c31cfb3597073bb18e396c113f700b1b09e2..47f09cf546c572df28a79b9518a27e915fce65d5 100644 (file)
@@ -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 );