]> git.eshelyaron.com Git - emacs.git/commitdiff
Account for utmp.h availability.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 23 Jan 2010 22:15:22 +0000 (17:15 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 23 Jan 2010 22:15:22 +0000 (17:15 -0500)
* configure.in: Check for utmp.h availability (FreeBSD 9.x lacks
this header file).

* filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
lacks this header file).

ChangeLog
configure
configure.in
src/ChangeLog
src/filelock.c

index db1d28dd620089ac5c32b8535d94190c29a5846e..6792ba4f3e6daed0fa711a40519050012ab00f20 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-23  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
+
+       * configure.in: Check for utmp.h availability (FreeBSD 9.x lacks
+       this header file).
+
 2010-01-12  Juanma Barranquero  <lekktu@gmail.com>
 
        * .bzrignore: Ignore all .exe, instead of individual files.
index 947b8ae9c3ebf1297132f578bab2a3213a9b1bbe..1ba9d361e6a823f5136a4f3935ba578f5c83e6a2 100755 (executable)
--- a/configure
+++ b/configure
@@ -6663,13 +6663,14 @@ fi
 
 
 
+
 
 
 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
   linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
   termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
   sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
-  sys/utsname.h pwd.h
+  sys/utsname.h pwd.h utmp.h
 do
 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
index 33671e530eec9fa5a5084127941471bf68bedd7d..82d3dfe4ededf65f0e2fdc662139260f16e9da01 100644 (file)
@@ -1106,7 +1106,7 @@ AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
   linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
   termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
   sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
-  sys/utsname.h pwd.h)
+  sys/utsname.h pwd.h utmp.h)
 
 AC_MSG_CHECKING(if personality LINUX32 can be set)
 AC_TRY_COMPILE([#include <sys/personality.h>], [personality (PER_LINUX32)],
index 62337d8db63662df8db4245772c11be95a6cfb67..d20b3113ba7685ab632532de44f11f38e0f4d64c 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-23  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
+
+       * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
+       lacks this header file).
+
 2010-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
        * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
index 3c92d495060e03610842a33ce97ae84b371fc0bc..7c69ea954fc60a3f7ce049c7db1ef58df94ef879 100644 (file)
@@ -63,7 +63,9 @@ Lisp_Object Vtemporary_file_directory;
 
 #ifdef CLASH_DETECTION
 
+#ifdef HAVE_UTMP_H
 #include <utmp.h>
+#endif
 
 #if !defined (S_ISLNK) && defined (S_IFLNK)
 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)