Mercurial > emacs
comparison src/s/gnu-linux.h @ 51109:cf8a7f2ef2c3
(MAIL_USE_FLOCK): Make it conditional.
| author | Dave Love <fx@gnu.org> |
|---|---|
| date | Tue, 20 May 2003 16:27:57 +0000 |
| parents | 8aaa2f3ae722 |
| children | 695cf19ef79e |
comparison
equal
deleted
inserted
replaced
| 51108:db532d1e8b7f | 51109:cf8a7f2ef2c3 |
|---|---|
| 128 /usr/spool/mail/$USER.lock. */ | 128 /usr/spool/mail/$USER.lock. */ |
| 129 | 129 |
| 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 |
| 138 a file that someone else has modified in his Emacs. */ | 148 a file that someone else has modified in his Emacs. */ |
| 139 | 149 |
