aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-03-06 00:01:47 -0800
committerGlenn Morris2013-03-06 00:01:47 -0800
commit0bafabe7b28b6ee05cf052579e398102fd73e0eb (patch)
tree13c16af2d2c15142e870351d150706ef4f86618a
parent047658249dd5067cb4366659f037d5f75a955707 (diff)
parent0845a75c6a624f88e232499a4c1dd7ff3c6eef5a (diff)
downloademacs-0bafabe7b28b6ee05cf052579e398102fd73e0eb.tar.gz
emacs-0bafabe7b28b6ee05cf052579e398102fd73e0eb.zip
Merge from emacs-24; up to 2012-12-25T11:37:21Z!dmantipov@yandex.ru
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac5
-rw-r--r--src/ChangeLog22
-rw-r--r--src/sysdep.c16
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 @@
12013-03-06 Paul Eggert <eggert@cs.ucla.edu>
2
3 * configure.ac (TERM_HEADER): Remove duplicate definition (Bug#13872).
4 It can mess up 'configure' runs.
5
12013-03-05 Glenn Morris <rgm@gnu.org> 62013-03-05 Glenn Morris <rgm@gnu.org>
2 7
3 * Makefile.in (install-man): Ignore gzip exit status. 8 * 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.
1580 ;; 1580 ;;
1581esac 1581esac
1582 1582
1583if test -n "${term_header}"; then
1584 AC_DEFINE_UNQUOTED(TERM_HEADER, "${term_header}",
1585 [Define to the header for the built-in window system.])
1586fi
1587
1588if test "$window_system" = none && test "X$with_x" != "Xno"; then 1583if test "$window_system" = none && test "X$with_x" != "Xno"; then
1589 AC_CHECK_PROG(HAVE_XSERVER, X, true, false) 1584 AC_CHECK_PROG(HAVE_XSERVER, X, true, false)
1590 if test "$HAVE_XSERVER" = true || 1585 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 @@
12013-03-06 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix a build failure on OpenBSD 4.x and MirBSD (Bug#13881).
4 * sysdep.c (list_system_processes)
5 [BSD_SYSTEM && !DARWIN_OS && !__FreeBSD__]:
6 Make it a stub in this case; otherwise the build might fail,
7 and this code hasn't been tested on such hosts anyway.
8 Problem reported by Nelson H. F. Beebe in
9 <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00021.html>
10 and analyzed by Jérémie Courrèges-Anglas in
11 <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00062.html>.
12
12013-03-06 Dmitry Antipov <dmantipov@yandex.ru> 132013-03-06 Dmitry Antipov <dmantipov@yandex.ru>
2 14
3 * lisp.h (find_next_newline_no_quit): Rename to find_next_newline. 15 * lisp.h (find_next_newline_no_quit): Rename to find_next_newline.
@@ -65,16 +77,6 @@
65 to be in sync with bidi_it->bytepos. Suggested by Dmitry Antipov 77 to be in sync with bidi_it->bytepos. Suggested by Dmitry Antipov
66 <dmantipov@yandex.ru>. 78 <dmantipov@yandex.ru>.
67 79
682013-03-05 Paul Eggert <eggert@cs.ucla.edu>
69
70 Fix a build failure on OpenBSD 4.x and MirBSD.
71 * sysdep.c (KERN_PROC, kinfo_proc)
72 [BSD_SYSTEM && (!KERN_PROC || __MirBSD__)]:
73 Define to KERN_PROC2 and kinfo_proc2, for OpenBSD 4.9 and MirBSD.
74 list-system-processes still returns nil, but at least it doesn't crash.
75 Problem reported by Nelson H. F. Beebe in
76 <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00021.html>.
77
782013-03-05 Dmitry Antipov <dmantipov@yandex.ru> 802013-03-05 Dmitry Antipov <dmantipov@yandex.ru>
79 81
80 * composite.c (get_composition_id, fill_gstring_header): 82 * 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)
2541 return proclist; 2541 return proclist;
2542} 2542}
2543 2543
2544#elif defined BSD_SYSTEM 2544#elif defined DARWIN_OS || defined __FreeBSD__
2545
2546/* OpenBSD 4.9 and earlier do not have KERN_PROC. Approximate it with
2547 KERN_PROC2. MirBSD's KERN_PROC seems to be busted. */
2548# if !defined KERN_PROC || defined __MirBSD__
2549# undef KERN_PROC
2550# define KERN_PROC KERN_PROC2
2551# define kinfo_proc kinfo_proc2
2552# endif
2553 2545
2554Lisp_Object 2546Lisp_Object
2555list_system_processes (void) 2547list_system_processes (void)
2556{ 2548{
2557#if defined DARWIN_OS || defined __NetBSD__ || defined __OpenBSD__ 2549#ifdef DARWIN_OS
2558 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_ALL}; 2550 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_ALL};
2559#else 2551#else
2560 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PROC}; 2552 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PROC};
@@ -2580,10 +2572,8 @@ list_system_processes (void)
2580 len /= sizeof (struct kinfo_proc); 2572 len /= sizeof (struct kinfo_proc);
2581 for (i = 0; i < len; i++) 2573 for (i = 0; i < len; i++)
2582 { 2574 {
2583#if defined DARWIN_OS || defined __NetBSD__ 2575#ifdef DARWIN_OS
2584 proclist = Fcons (make_fixnum_or_float (procs[i].kp_proc.p_pid), proclist); 2576 proclist = Fcons (make_fixnum_or_float (procs[i].kp_proc.p_pid), proclist);
2585#elif defined __OpenBSD__
2586 proclist = Fcons (make_fixnum_or_float (procs[i].p_pid), proclist);
2587#else 2577#else
2588 proclist = Fcons (make_fixnum_or_float (procs[i].ki_pid), proclist); 2578 proclist = Fcons (make_fixnum_or_float (procs[i].ki_pid), proclist);
2589#endif 2579#endif