]> git.eshelyaron.com Git - emacs.git/commitdiff
(MAIL_USE_FLOCK): Make it conditional.
authorDave Love <fx@gnu.org>
Tue, 20 May 2003 16:27:57 +0000 (16:27 +0000)
committerDave Love <fx@gnu.org>
Tue, 20 May 2003 16:27:57 +0000 (16:27 +0000)
src/s/gnu-linux.h

index 83201e080a95ae6f7b5c471e99de799100b2f1c3..ac0ad0b014d27f8df7a1c5bab2cdd5f9706b031e 100644 (file)
@@ -130,8 +130,18 @@ Boston, MA 02111-1307, USA.  */
 /* On GNU/Linux systems, both methods are used by various mail
    programs.  I assume that most people are using newer mailers that
    have heard of flock.  Change this if you need to. */
-
+/* Debian contains a patch which says: ``On Debian/GNU/Linux systems,
+   configure gets the right answers, and that means *NOT* using flock.
+   Using flock is guaranteed to be the wrong thing. See Debian Policy
+   for details.'' and then uses `#ifdef DEBIAN'.  Unfortunately the
+   Debian maintainer hasn't provided a clean fix for Emacs.
+   movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
+   HAVE_MAILLOCK_H are defined, so the following appears to be the
+   correct logic.  -- fx */
+
+#if !(defined (HAVE_LIBMAIL) && defined (HAVE_MAILLOCK_H))
 #define MAIL_USE_FLOCK
+#endif
 
 /* Define CLASH_DETECTION if you want lock files to be written
    so that Emacs can tell instantly when you try to modify