From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: emacs-24.2.93 build problems Date: Mon, 04 Mar 2013 18:17:50 -0800 Organization: UCLA Computer Science Department Message-ID: <513555CE.4070409@cs.ucla.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1362449877 32074 80.91.229.3 (5 Mar 2013 02:17:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Mar 2013 02:17:57 +0000 (UTC) Cc: Emacs Development To: "Nelson H. F. Beebe" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 05 03:18:21 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 1UChSP-00075W-2N for ged-emacs-devel@m.gmane.org; Tue, 05 Mar 2013 03:18:21 +0100 Original-Received: from localhost ([::1]:50775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UChS3-0003Di-IN for ged-emacs-devel@m.gmane.org; Mon, 04 Mar 2013 21:17:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UChRz-0003C7-3y for Emacs-devel@gnu.org; Mon, 04 Mar 2013 21:17:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UChRx-0008GS-NS for Emacs-devel@gnu.org; Mon, 04 Mar 2013 21:17:55 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:42070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UChRx-0008GN-Eg for Emacs-devel@gnu.org; Mon, 04 Mar 2013 21:17:53 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id BAEF2A6006F; Mon, 4 Mar 2013 18:17:52 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r2-A9lpHchD0; Mon, 4 Mar 2013 18:17:51 -0800 (PST) Original-Received: from [192.168.1.9] (pool-71-189-154-249.lsanca.fios.verizon.net [71.189.154.249]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 0B693A6006E; Mon, 4 Mar 2013 18:17:51 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 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:157519 Archived-At: On 03/04/2013 04:42 PM, Nelson H. F. Beebe wrote: > MirBSD is a derivative of NetBSD and OpenBSD, and often causes porting > issues. > > I then made this one-line tweak to your patch: > > % diff sysdep.c.~1~ sysdep.c > 2654c2654 > < # ifndef KERN_PROC > --- > > # if !defined(KERN_PROC) || defined(__MirBSD__) Thanks, I pushed this into emacs-24 as well, as bzr 111317. === modified file 'src/ChangeLog' --- src/ChangeLog 2013-03-05 02:03:05 +0000 +++ src/ChangeLog 2013-03-05 02:15:35 +0000 @@ -1,8 +1,9 @@ 2013-03-05 Paul Eggert - Fix a build failure on OpenBSD 4.x. - * sysdep.c (KERN_PROC, kinfo_proc) [BSD_SYSTEM && !KERN_PROC]: - Define to KERN_PROC2 and kinfo_proc2, for OpenBSD 4.9. + 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 . === modified file 'src/sysdep.c' --- src/sysdep.c 2013-03-05 02:03:05 +0000 +++ src/sysdep.c 2013-03-05 02:15:35 +0000 @@ -2650,8 +2650,9 @@ #elif defined BSD_SYSTEM /* OpenBSD 4.9 and earlier do not have KERN_PROC. Approximate it with - KERN_PROC2. */ -# ifndef KERN_PROC + 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