all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: "Nelson H. F. Beebe" <beebe@math.utah.edu>
Cc: Emacs Development <Emacs-devel@gnu.org>
Subject: Re: emacs-24.2.93 build problems
Date: Mon, 04 Mar 2013 18:17:50 -0800	[thread overview]
Message-ID: <513555CE.4070409@cs.ucla.edu> (raw)
In-Reply-To: <CMM.0.94.0.1362444120.beebe@psi.math.utah.edu>

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  <eggert@cs.ucla.edu>
 
-	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
 	<http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00021.html>.

=== 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





       reply	other threads:[~2013-03-05  2:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CMM.0.94.0.1362444120.beebe@psi.math.utah.edu>
2013-03-05  2:17 ` Paul Eggert [this message]
2013-03-02 23:00 emacs-24.2.93 build problems Nelson H. F. Beebe
2013-03-03  0:09 ` Paul Eggert
2013-03-04 20:34   ` Glenn Morris
2013-03-04 23:44     ` Jérémie Courrèges-Anglas
2013-03-05  3:47       ` Glenn Morris
2013-03-05 14:00         ` Jérémie Courrèges-Anglas
2013-03-05 17:06           ` Glenn Morris
2013-03-04 23:51   ` Glenn Morris
2013-03-05  2:06     ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=513555CE.4070409@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=Emacs-devel@gnu.org \
    --cc=beebe@math.utah.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.