]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/lock.c
fix Release configuration
[openldap] / servers / slapd / lock.c
index b23aa9028c32ff68c00196ced538938af70271e1..fe3a850abd779fe1bf5539babb96368829db2f2d 100644 (file)
@@ -12,7 +12,9 @@
 #ifdef HAVE_SYS_FILE_H
 #include <sys/file.h>
 #endif
+#ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
+#endif
 #include "slap.h"
 
 FILE *
@@ -30,9 +32,7 @@ lock_fopen( char *fname, char *type, FILE **lfp )
        }
 
        /* acquire the lock */
-       while ( ldap_lockf( fileno(*lfp) ) != 0 ) {
-               ;       /* NULL */
-       }
+       ldap_lockf( fileno(*lfp) );
 
        /* open the log file */
        if ( (fp = fopen( fname, type )) == NULL ) {