]> arthur.barton.de Git - netatalk.git/commitdiff
configure option for fcntl locking
authordidg <didg>
Sun, 26 Oct 2003 10:33:37 +0000 (10:33 +0000)
committerdidg <didg>
Sun, 26 Oct 2003 10:33:37 +0000 (10:33 +0000)
configure.in
libatalk/adouble/ad_lock.c

index dd09973cf2b158b799357f89b580d5e156247cdf..0c5950289772a4581adefa8b6dad703cc6e2daff 100644 (file)
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.179.2.3.2.7 2003-10-17 00:01:10 didg Exp $
+dnl $Id: configure.in,v 1.179.2.3.2.8 2003-10-26 10:33:37 didg Exp $
 dnl configure.in for netatalk
 
 AC_INIT(bin/adv1tov2/adv1tov2.c)
@@ -517,6 +517,14 @@ AC_ARG_ENABLE(shell-check,
        fi
 )
 
+AC_ARG_ENABLE(locking,
+       [  --disable-locking   disable system locking],
+       if test "$enableval" = "no"; then 
+               AC_DEFINE(DISABLE_LOCKING, 1, [Define if system (fcntl) locking should be disabled])
+               AC_MSG_RESULT([disabling system locking])
+       fi
+)
+
 #AC_ARG_WITH(tcp-wrappers,
 #      [  --with-tcp-wrappers     enable TCP wrappers support],[
 #      AC_CHECK_HEADERS(tcpd.h)
index 8222500b0c46135cda15a7eacd22b7aa4ad78340..e0b635e28400f043dda17ed8b2d59a25f72baf95 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * $Id: ad_lock.c,v 1.11 2003-02-16 12:35:05 didg Exp $
+ * $Id: ad_lock.c,v 1.11.6.1 2003-10-26 10:33:37 didg Exp $
  *
  * Copyright (c) 1998,1999 Adrian Sun (asun@zoology.washington.edu)
  * All Rights Reserved. See COPYRIGHT for more information.
 ((type) == ADLOCK_WR ? LOCK_EX : \
  ((type) == ADLOCK_CLR ? LOCK_UN : -1)))
 
+#ifdef DISABLE_LOCKING
+#define fcntl(a, b, c ) (0)
+#endif
+
 /* ----------------------- */
 static int XLATE_FCNTL_LOCK(int type) 
 {