diff options
| author | Chong Yidong | 2010-01-23 17:15:22 -0500 |
|---|---|---|
| committer | Chong Yidong | 2010-01-23 17:15:22 -0500 |
| commit | c6d09b8da9277374a080f8574251b98f8f7879cb (patch) | |
| tree | 7d6581e10421c9a4d8dcede70b10909bc50f4793 | |
| parent | 5336c3ec747bcfca4edf97e962f06ec6f37b6936 (diff) | |
| download | emacs-c6d09b8da9277374a080f8574251b98f8f7879cb.tar.gz emacs-c6d09b8da9277374a080f8574251b98f8f7879cb.zip | |
Account for utmp.h availability.
* 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).
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rwxr-xr-x | configure | 3 | ||||
| -rw-r--r-- | configure.in | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/filelock.c | 2 |
5 files changed, 15 insertions, 2 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change) | ||
| 2 | |||
| 3 | * configure.in: Check for utmp.h availability (FreeBSD 9.x lacks | ||
| 4 | this header file). | ||
| 5 | |||
| 1 | 2010-01-12 Juanma Barranquero <lekktu@gmail.com> | 6 | 2010-01-12 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * .bzrignore: Ignore all .exe, instead of individual files. | 8 | * .bzrignore: Ignore all .exe, instead of individual files. |
| @@ -6665,11 +6665,12 @@ fi | |||
| 6665 | 6665 | ||
| 6666 | 6666 | ||
| 6667 | 6667 | ||
| 6668 | |||
| 6668 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | 6669 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
| 6669 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 6670 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
| 6670 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ | 6671 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
| 6671 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ | 6672 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
| 6672 | sys/utsname.h pwd.h | 6673 | sys/utsname.h pwd.h utmp.h |
| 6673 | do | 6674 | do |
| 6674 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6675 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6675 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 6676 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
diff --git a/configure.in b/configure.in index 33671e530ee..82d3dfe4ede 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1106,7 +1106,7 @@ AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |||
| 1106 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 1106 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
| 1107 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ | 1107 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
| 1108 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ | 1108 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
| 1109 | sys/utsname.h pwd.h) | 1109 | sys/utsname.h pwd.h utmp.h) |
| 1110 | 1110 | ||
| 1111 | AC_MSG_CHECKING(if personality LINUX32 can be set) | 1111 | AC_MSG_CHECKING(if personality LINUX32 can be set) |
| 1112 | AC_TRY_COMPILE([#include <sys/personality.h>], [personality (PER_LINUX32)], | 1112 | AC_TRY_COMPILE([#include <sys/personality.h>], [personality (PER_LINUX32)], |
diff --git a/src/ChangeLog b/src/ChangeLog index 62337d8db63..d20b3113ba7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change) | ||
| 2 | |||
| 3 | * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x | ||
| 4 | lacks this header file). | ||
| 5 | |||
| 1 | 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 6 | 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 7 | ||
| 3 | * xdisp.c (draw_glyphs): Update `start' for left_overwritten case | 8 | * xdisp.c (draw_glyphs): Update `start' for left_overwritten case |
diff --git a/src/filelock.c b/src/filelock.c index 3c92d495060..7c69ea954fc 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -63,7 +63,9 @@ Lisp_Object Vtemporary_file_directory; | |||
| 63 | 63 | ||
| 64 | #ifdef CLASH_DETECTION | 64 | #ifdef CLASH_DETECTION |
| 65 | 65 | ||
| 66 | #ifdef HAVE_UTMP_H | ||
| 66 | #include <utmp.h> | 67 | #include <utmp.h> |
| 68 | #endif | ||
| 67 | 69 | ||
| 68 | #if !defined (S_ISLNK) && defined (S_IFLNK) | 70 | #if !defined (S_ISLNK) && defined (S_IFLNK) |
| 69 | #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) | 71 | #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) |