Mercurial > emacs
diff src/filelock.c @ 21413:edf1091d8a60
Include <utmp.h> only if CLASH_DETECTION is
defined.
| author | Karl Heuer <kwzh@gnu.org> |
|---|---|
| date | Wed, 08 Apr 1998 06:48:59 +0000 |
| parents | 50929073a0ba |
| children | fa9ff387d260 |
line wrap: on
line diff
--- a/src/filelock.c Wed Apr 08 06:43:52 1998 +0000 +++ b/src/filelock.c Wed Apr 08 06:48:59 1998 +0000 @@ -38,13 +38,14 @@ #include "buffer.h" #include <time.h> -#include <utmp.h> #include <errno.h> #ifndef errno extern int errno; #endif #ifdef CLASH_DETECTION + +#include <utmp.h> /* The strategy: to lock a file FN, create a symlink .#FN in FN's directory, with link data `user@host.pid'. This avoids a single
