aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1998-04-08 06:48:59 +0000
committerKarl Heuer1998-04-08 06:48:59 +0000
commite788eecc88e9734002c5b03c9955228382c0303c (patch)
treea2e1c0dbafd3a3899ac493f09408e98b5e0c6600 /src
parente13608fb0515d989196f14a93a21d81a41ae801f (diff)
downloademacs-e788eecc88e9734002c5b03c9955228382c0303c.tar.gz
emacs-e788eecc88e9734002c5b03c9955228382c0303c.zip
Include <utmp.h> only if CLASH_DETECTION is
defined.
Diffstat (limited to 'src')
-rw-r--r--src/filelock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c
index b17fab1c6af..134b3808acd 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -38,13 +38,14 @@ Boston, MA 02111-1307, USA. */
38#include "buffer.h" 38#include "buffer.h"
39 39
40#include <time.h> 40#include <time.h>
41#include <utmp.h>
42#include <errno.h> 41#include <errno.h>
43#ifndef errno 42#ifndef errno
44extern int errno; 43extern int errno;
45#endif 44#endif
46 45
47#ifdef CLASH_DETECTION 46#ifdef CLASH_DETECTION
47
48#include <utmp.h>
48 49
49/* The strategy: to lock a file FN, create a symlink .#FN in FN's 50/* The strategy: to lock a file FN, create a symlink .#FN in FN's
50 directory, with link data `user@host.pid'. This avoids a single 51 directory, with link data `user@host.pid'. This avoids a single