aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2003-05-20 16:27:57 +0000
committerDave Love2003-05-20 16:27:57 +0000
commit828a3791cc7d287c89a74ce593d9e7376cf37938 (patch)
treecb727421933a523d0be2c3262c45985cc716a31e
parent8045beb3588397a39228275571364aa5d333b86c (diff)
downloademacs-828a3791cc7d287c89a74ce593d9e7376cf37938.tar.gz
emacs-828a3791cc7d287c89a74ce593d9e7376cf37938.zip
(MAIL_USE_FLOCK): Make it conditional.
-rw-r--r--src/s/gnu-linux.h12
1 files changed, 11 insertions, 1 deletions
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. */
130/* On GNU/Linux systems, both methods are used by various mail 130/* On GNU/Linux systems, both methods are used by various mail
131 programs. I assume that most people are using newer mailers that 131 programs. I assume that most people are using newer mailers that
132 have heard of flock. Change this if you need to. */ 132 have heard of flock. Change this if you need to. */
133 133/* Debian contains a patch which says: ``On Debian/GNU/Linux systems,
134 configure gets the right answers, and that means *NOT* using flock.
135 Using flock is guaranteed to be the wrong thing. See Debian Policy
136 for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
137 Debian maintainer hasn't provided a clean fix for Emacs.
138 movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
139 HAVE_MAILLOCK_H are defined, so the following appears to be the
140 correct logic. -- fx */
141
142#if !(defined (HAVE_LIBMAIL) && defined (HAVE_MAILLOCK_H))
134#define MAIL_USE_FLOCK 143#define MAIL_USE_FLOCK
144#endif
135 145
136/* Define CLASH_DETECTION if you want lock files to be written 146/* Define CLASH_DETECTION if you want lock files to be written
137 so that Emacs can tell instantly when you try to modify 147 so that Emacs can tell instantly when you try to modify