changeset 51109:cf8a7f2ef2c3

(MAIL_USE_FLOCK): Make it conditional.
author Dave Love <fx@gnu.org>
date Tue, 20 May 2003 16:27:57 +0000
parents db532d1e8b7f
children fca623d011f5
files src/s/gnu-linux.h
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/gnu-linux.h	Mon May 19 22:26:09 2003 +0000
+++ b/src/s/gnu-linux.h	Tue May 20 16:27:57 2003 +0000
@@ -130,8 +130,18 @@
 /* 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