]> git.eshelyaron.com Git - emacs.git/commitdiff
Include <utmp.h> only if CLASH_DETECTION is
authorKarl Heuer <kwzh@gnu.org>
Wed, 8 Apr 1998 06:48:59 +0000 (06:48 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 8 Apr 1998 06:48:59 +0000 (06:48 +0000)
defined.

src/filelock.c

index b17fab1c6af2c7e72d87d28c9d021ab60d466c8f..134b3808acdc88ef159d3efcb68e09553a39e8e8 100644 (file)
@@ -38,13 +38,14 @@ Boston, MA 02111-1307, USA.  */
 #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