emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [24.3] possible build failure for list-system-processes on DragonFly


From: Paul Eggert
Subject: Re: [24.3] possible build failure for list-system-processes on DragonFlyBSD
Date: Tue, 05 Mar 2013 21:07:07 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3

On 03/05/2013 07:12 PM, Glenn Morris wrote:
> AFAICS, it was tested on FreeBSD and Max OS X?
> So yes, as far as I'm concerned it can be restricted to just those rather
> than BSD_SYSTEM.

>From what I can gather,
the NetBSD problem will come up only in the next NetBSD release, as
the current release should be OK; still, if nobody's tested it we're
probably better off omitting it for now.

How about the following patch?

=== modified file 'src/sysdep.c'
--- src/sysdep.c        2013-03-05 21:56:36 +0000
+++ src/sysdep.c        2013-03-06 05:02:30 +0000
@@ -2647,12 +2647,12 @@
   return proclist;
 }
 
-#elif defined BSD_SYSTEM && !defined __OpenBSD__ && !defined __MirBSD__
+#elif defined DARWIN_OS || defined __FreeBSD__
 
 Lisp_Object
 list_system_processes (void)
 {
-#if defined DARWIN_OS || defined __NetBSD__
+#ifdef DARWIN_OS
   int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_ALL};
 #else
   int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PROC};
@@ -2678,7 +2678,7 @@
   len /= sizeof (struct kinfo_proc);
   for (i = 0; i < len; i++)
     {
-#if defined DARWIN_OS || defined __NetBSD__
+#ifdef DARWIN_OS
       proclist = Fcons (make_fixnum_or_float (procs[i].kp_proc.p_pid), 
proclist);
 #else
       proclist = Fcons (make_fixnum_or_float (procs[i].ki_pid), proclist);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]