]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/lockf.c
If we are using lutil_lock functions then define NEED_SIMPLE_LOCKING or
[openldap] / libraries / liblutil / lockf.c
index 7307720dd68744af161365b245c2762fb73e092b..13226bbf590471e6ef9fea5dd1ca97b75e2d8c29 100644 (file)
@@ -7,14 +7,14 @@
  * license is available at http://www.OpenLDAP.org/license.html or
  * in file LICENSE in the top-level directory of the distribution.
  */
-/* File locking methods */
+/* Simple file locking method for systems without */
 
 #include "portable.h"
 
 #include <stdio.h>
 #include <ac/unistd.h>
 
-#if defined(NEED_FCNTL_LOCKING)
+#ifdef NEED_SIMPLE_LOCKING
 
 int lutil_lockf ( FILE *fp ) {
        struct flock file_lock;
@@ -36,4 +36,4 @@ int lutil_unlockf ( FILE *fp ) {
        return ( fcntl( fileno(fp), F_SETLK, &file_lock ) );
 }
 
-#endif /* !HAVE_FILE_LOCKING */
+#endif /* NEED_SIMPLE_LOCKING */