diff options
| author | Glenn Morris <rgm@gnu.org> | 2013-03-06 00:01:47 -0800 |
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2013-03-06 00:01:47 -0800 |
| commit | 0bafabe7b28b6ee05cf052579e398102fd73e0eb (patch) | |
| tree | 13c16af2d2c15142e870351d150706ef4f86618a | |
| parent | 047658249dd5067cb4366659f037d5f75a955707 (diff) | |
| parent | 0845a75c6a624f88e232499a4c1dd7ff3c6eef5a (diff) | |
| download | emacs-0bafabe7b28b6ee05cf052579e398102fd73e0eb.tar.gz | |
Merge from emacs-24; up to 2012-12-25T11:37:21Z!dmantipov@yandex.ru
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | configure.ac | 5 | ||||
| -rw-r--r-- | src/ChangeLog | 22 | ||||
| -rw-r--r-- | src/sysdep.c | 16 |
4 files changed, 20 insertions, 28 deletions
diff --git a/ChangeLog b/ChangeLog index 293a554c9f5..84d88fa7f1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-03-06 Paul Eggert <eggert@cs.ucla.edu> + + * configure.ac (TERM_HEADER): Remove duplicate definition (Bug#13872). + It can mess up 'configure' runs. + 2013-03-05 Glenn Morris <rgm@gnu.org> * Makefile.in (install-man): Ignore gzip exit status. diff --git a/configure.ac b/configure.ac index 76a99cb9856..aed625e44a9 100644 --- a/configure.ac +++ b/configure.ac @@ -1580,11 +1580,6 @@ dnl use the toolkit if we have gtk, or X11R5 or newer. ;; esac -if test -n "${term_header}"; then - AC_DEFINE_UNQUOTED(TERM_HEADER, "${term_header}", - [Define to the header for the built-in window system.]) -fi - if test "$window_system" = none && test "X$with_x" != "Xno"; then AC_CHECK_PROG(HAVE_XSERVER, X, true, false) if test "$HAVE_XSERVER" = true || diff --git a/src/ChangeLog b/src/ChangeLog index 84ba55e3bdf..bbf2aae960a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,15 @@ +2013-03-06 Paul Eggert <eggert@cs.ucla.edu> + + Fix a build failure on OpenBSD 4.x and MirBSD (Bug#13881). + * sysdep.c (list_system_processes) + [BSD_SYSTEM && !DARWIN_OS && !__FreeBSD__]: + Make it a stub in this case; otherwise the build might fail, + and this code hasn't been tested on such hosts anyway. + Problem reported by Nelson H. F. Beebe in + <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00021.html> + and analyzed by Jérémie Courrèges-Anglas in + <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00062.html>. + 2013-03-06 Dmitry Antipov <dmantipov@yandex.ru> * lisp.h (find_next_newline_no_quit): Rename to find_next_newline. @@ -65,16 +77,6 @@ to be in sync with bidi_it->bytepos. Suggested by Dmitry Antipov <dmantipov@yandex.ru>. -2013-03-05 Paul Eggert <eggert@cs.ucla.edu> - - Fix a build failure on OpenBSD 4.x and MirBSD. - * sysdep.c (KERN_PROC, kinfo_proc) - [BSD_SYSTEM && (!KERN_PROC || __MirBSD__)]: - Define to KERN_PROC2 and kinfo_proc2, for OpenBSD 4.9 and MirBSD. - list-system-processes still returns nil, but at least it doesn't crash. - Problem reported by Nelson H. F. Beebe in - <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00021.html>. - 2013-03-05 Dmitry Antipov <dmantipov@yandex.ru> * composite.c (get_composition_id, fill_gstring_header): diff --git a/src/sysdep.c b/src/sysdep.c index c4b937183ca..fe6371623a9 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2541,20 +2541,12 @@ list_system_processes (void) return proclist; } -#elif defined BSD_SYSTEM - -/* OpenBSD 4.9 and earlier do not have KERN_PROC. Approximate it with - KERN_PROC2. MirBSD's KERN_PROC seems to be busted. */ -# if !defined KERN_PROC || defined __MirBSD__ -# undef KERN_PROC -# define KERN_PROC KERN_PROC2 -# define kinfo_proc kinfo_proc2 -# endif +#elif defined DARWIN_OS || defined __FreeBSD__ Lisp_Object list_system_processes (void) { -#if defined DARWIN_OS || defined __NetBSD__ || defined __OpenBSD__ +#ifdef DARWIN_OS int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_ALL}; #else int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PROC}; @@ -2580,10 +2572,8 @@ list_system_processes (void) len /= sizeof (struct kinfo_proc); for (i = 0; i < len; i++) { -#if defined DARWIN_OS || defined __NetBSD__ +#ifdef DARWIN_OS proclist = Fcons (make_fixnum_or_float (procs[i].kp_proc.p_pid), proclist); -#elif defined __OpenBSD__ - proclist = Fcons (make_fixnum_or_float (procs[i].p_pid), proclist); #else proclist = Fcons (make_fixnum_or_float (procs[i].ki_pid), proclist); #endif |
