From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: emacs-24.2.93 build problems Date: Mon, 04 Mar 2013 18:51:13 -0500 Message-ID: <7nmwui911q.fsf@fencepost.gnu.org> References: <513294CE.5060101@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1362441082 25241 80.91.229.3 (4 Mar 2013 23:51:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Mar 2013 23:51:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 05 00:51:44 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UCfAR-00020y-Q1 for ged-emacs-devel@m.gmane.org; Tue, 05 Mar 2013 00:51:39 +0100 Original-Received: from localhost ([::1]:42147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCfA6-00007d-CI for ged-emacs-devel@m.gmane.org; Mon, 04 Mar 2013 18:51:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCfA3-00007T-V5 for emacs-devel@gnu.org; Mon, 04 Mar 2013 18:51:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCfA2-0000ZL-9f for emacs-devel@gnu.org; Mon, 04 Mar 2013 18:51:15 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:42515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCfA2-0000Z6-6m for emacs-devel@gnu.org; Mon, 04 Mar 2013 18:51:14 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UCfA1-0003M7-7X; Mon, 04 Mar 2013 18:51:13 -0500 X-Spook: Attorney General Freeh undercover defense information X-Ran: aSt"^%Ts,P(lsh.Ku]6Z=&yPU*T[B![?L>ZVYiTY;gY8hLdufr/:'<=eYFp0u~Gl,P,#mm X-Hue: yellow X-Attribution: GM In-Reply-To: <513294CE.5060101@cs.ucla.edu> (Paul Eggert's message of "Sat, 02 Mar 2013 16:09:50 -0800") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157515 Archived-At: I tested this on a virtual OpenBSD 4.9, and it fixes the problem for me. Please install (otherwise I will in a few hours). list-system-processes still returns nil, so it does't do anything useful, but it doesn't crash or do anything obviously bad. Paul Eggert wrote: > === modified file 'src/sysdep.c' > --- src/sysdep.c 2013-01-11 07:47:57 +0000 > +++ src/sysdep.c 2013-03-03 00:04:08 +0000 > @@ -2649,6 +2649,13 @@ list_system_processes (void) > > #elif defined BSD_SYSTEM > > +/* OpenBSD 4.9 and earlier do not have KERN_PROC. Approximate it with > + KERN_PROC2. */ > +# ifndef KERN_PROC > +# define KERN_PROC KERN_PROC2 > +# define kinfo_proc kinfo_proc2 > +# endif > + > Lisp_Object > list_system_processes (void) > {