[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: DragonFly patch for kdebase/kcontrol/kfontinst/lib/GetPid.c
From: David Leimbach <leimy2k () mac ! com>
Date: 2004-01-10 21:04:24
Message-ID: 9199C3B3-43B0-11D8-B640-000A95AFBEB4 () mac ! com
[Download RAW message or body]
This is the last patch needed to make today's CVS compile on DragonFly.
["GetPid.c.patch" (GetPid.c.patch)]
Index: GetPid.c
===================================================================
RCS file: /home/kde/kdebase/kcontrol/kfontinst/lib/GetPid.c,v
retrieving revision 1.8
diff -u -r1.8 GetPid.c
--- GetPid.c 15 Dec 2003 14:05:16 -0000 1.8
+++ GetPid.c 10 Jan 2004 21:00:11 -0000
@@ -31,8 +31,17 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
+#if defined(__DragonFly__)
+#include <sys/param.h>
+#endif
+
#include <sys/types.h>
+#if defined(__DragonFly__)
+#include <sys/user.h>
+#endif
+
#ifndef __cplusplus
#define bool unsigned int
#define false 0
@@ -210,7 +219,11 @@
else
pid=p[num].ki_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)) +#else
if(proc_p.kp_eproc.e_ppid==ppid && p[num].kp_proc.p_comm && \
0==strcmp(p[num].kp_proc.p_comm, proc)) +#endif
if(pid)
error=true;
else
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic