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