diff options
Diffstat (limited to 'src/s/gnu-linux.h')
| -rw-r--r-- | src/s/gnu-linux.h | 12 |
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 |