openbsd-ports/devel/libgtop2/patches/patch-sysdeps_freebsd_sem_limits_c
steven d962a2a9ce fix texinfo stuff, regen patches, rerun makesum
from Moritz Grimm <mlist at scapa.dnsalias.net>

ok espie@
2007-02-21 17:27:53 +00:00

26 lines
940 B
Plaintext

$OpenBSD: patch-sysdeps_freebsd_sem_limits_c,v 1.5 2007/02/21 17:27:54 steven Exp $
--- sysdeps/freebsd/sem_limits.c.orig Tue Jan 2 23:50:28 2007
+++ sysdeps/freebsd/sem_limits.c Sun Feb 18 20:23:18 2007
@@ -57,7 +57,10 @@ glibtop_get_sem_limits_p (glibtop *serve
#include <sys/sem.h>
static unsigned long _glibtop_sysdeps_sem_limits =
-(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
+#ifndef __OpenBSD__
+(1L << GLIBTOP_IPC_SEMMAP) +
+#endif
+(1L << GLIBTOP_IPC_SEMMNI) +
(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
@@ -105,7 +108,9 @@ glibtop_get_sem_limits_p (glibtop *serve
if (server->sysdeps.sem_limits == 0)
return;
+#ifndef __OpenBSD__
buf->semmap = _seminfo.semmap;
+#endif
buf->semmni = _seminfo.semmni;
buf->semmns = _seminfo.semmns;
buf->semmnu = _seminfo.semmnu;