changeset 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 8d9370825e85
children aac7354edaed
files src/filelock.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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