[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase/kcontrol/kfontinst/kfontinst
From:       Hasso Tepper <hasso () kde ! org>
Date:       2007-04-20 18:21:06
Message-ID: 1177093266.092980.960.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 656233 by hasso:

Fix compile in DragonFlyBSD 1.9.


 M  +8 -0      GetPid.c  


--- branches/KDE/3.5/kdebase/kcontrol/kfontinst/kfontinst/GetPid.c #656232:656233
@@ -200,6 +200,8 @@
         mib[2] = KERN_PROC_PID;
 #if __FreeBSD_version >= 500015
         mib[3] = p[num].ki_pid;
+#elif defined(__DragonFly__) && __DragonFly_version >= 190000
+        mib[3] = p[num].kp_pid;
 #else
         mib[3] = p[num].kp_proc.p_pid;
 #endif
@@ -215,6 +217,12 @@
                     error=true;
                 else
                     pid=p[num].ki_pid;
+#elif defined (__DragonFly__) && __DragonFly_version >= 190000
+            if(proc_p.kp_ppid==ppid && p[num].kp_comm && 0==strcmp(p[num].kp_comm, \
proc)) +                if(pid)
+                    error=true;
+                else
+                    pid=p[num].kp_pid;
 #else
 #if defined(__DragonFly__)
 	    if(proc_p.kp_eproc.e_ppid==ppid && p[num].kp_thread.td_comm && \
0==strcmp(p[num].kp_thread.td_comm, proc))


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic