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: Sat, 02 Mar 2013 16:09:50 -0800 Organization: UCLA Computer Science Department Message-ID: <513294CE.5060101@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 1362269401 8511 80.91.229.3 (3 Mar 2013 00:10:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Mar 2013 00:10:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Nelson H. F. Beebe" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 03 01:10: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 1UBwVO-0007xk-LI for ged-emacs-devel@m.gmane.org; Sun, 03 Mar 2013 01:10:18 +0100 Original-Received: from localhost ([::1]:59930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBwV3-0004Jp-CL for ged-emacs-devel@m.gmane.org; Sat, 02 Mar 2013 19:09:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBwUz-0004JZ-R9 for emacs-devel@gnu.org; Sat, 02 Mar 2013 19:09:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBwUy-00066U-Tc for emacs-devel@gnu.org; Sat, 02 Mar 2013 19:09:53 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:49582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBwUy-00065S-NT for emacs-devel@gnu.org; Sat, 02 Mar 2013 19:09:52 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 6A60DA6001A; Sat, 2 Mar 2013 16:09:51 -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 jgf2he1n3T0R; Sat, 2 Mar 2013 16:09: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 16A59A60017; Sat, 2 Mar 2013 16:09: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:157488 Archived-At: On 03/02/2013 03:00 PM, Nelson H. F. Beebe wrote: > sysdep.c:2656: error: 'KERN_PROC' undeclared (first use in this function) Thanks for the heads-up. Yes, we should fix the problem. Does the following little patch fix the bug? (I don't have any OpenBSD hosts to play with, unfortunately.) === 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) {