openbsd-ports/devel/libgtop2/patches/patch-sysdeps_freebsd_procuid_c
marcm bb06e0824a CVS wasn't kind to this commit :). Remove the zero length patches,
fix another patch that was lost in the update, oh and what the heck
update the version again.
2004-12-11 17:41:52 +00:00

21 lines
753 B
Plaintext

--- sysdeps/freebsd/procuid.c.orig Wed Jun 9 11:52:21 2004
+++ sysdeps/freebsd/procuid.c Fri Dec 10 19:15:09 2004
@@ -56,7 +56,7 @@ glibtop_get_proc_uid_p (glibtop *server,
int count = 0;
#if LIBGTOP_VERSION_CODE >= 1001000
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
+#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
struct ucred ucred;
void *ucred_ptr;
#endif
@@ -115,7 +115,7 @@ glibtop_get_proc_uid_p (glibtop *server,
buf->tpgid = pinfo [0].PROC_TPGID;
buf->nice = pinfo [0].PROC_NICE;
-#if defined(__NetBSD__) && defined(SACTIVE)
+#if (defined(__NetBSD__) || defined(__OpenBSD__)) && defined(SACTIVE)
buf->priority = 0;
#else
buf->priority = pinfo [0].PROC_PRIORITY;