From 828a3791cc7d287c89a74ce593d9e7376cf37938 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 20 May 2003 16:27:57 +0000 Subject: [PATCH] (MAIL_USE_FLOCK): Make it conditional. --- src/s/gnu-linux.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 83201e080a9..ac0ad0b014d 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h @@ -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 -- 2.39.2