From 0c6c586dc00e0fb3cb5998f828eab5d9d4065858 Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 14 Feb 2008 17:32:05 +0000 Subject: Sync with FreeBSD ports tree. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10446 df743ca5-7f9a-e211-a948-0013205c9059 --- devel/libgtop/Makefile | 4 ++-- .../files/patch-sysdeps_freebsd_shm_limits.c | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 devel/libgtop/files/patch-sysdeps_freebsd_shm_limits.c (limited to 'devel/libgtop') diff --git a/devel/libgtop/Makefile b/devel/libgtop/Makefile index 87abfe01c..4d0be8a44 100644 --- a/devel/libgtop/Makefile +++ b/devel/libgtop/Makefile @@ -3,12 +3,12 @@ # Whom: Joe Marcus Clarke # # $FreeBSD$ -# $MCom: ports/devel/libgtop/Makefile,v 1.29 2008/02/10 00:14:15 marcus Exp $ +# $MCom: ports/devel/libgtop/Makefile,v 1.30 2008/02/10 00:52:19 marcus Exp $ # PORTNAME= libgtop PORTVERSION= 2.21.5 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} diff --git a/devel/libgtop/files/patch-sysdeps_freebsd_shm_limits.c b/devel/libgtop/files/patch-sysdeps_freebsd_shm_limits.c new file mode 100644 index 000000000..755bb6231 --- /dev/null +++ b/devel/libgtop/files/patch-sysdeps_freebsd_shm_limits.c @@ -0,0 +1,22 @@ +--- sysdeps/freebsd/shm_limits.c.orig 2008-02-14 12:26:46.000000000 -0500 ++++ sysdeps/freebsd/shm_limits.c 2008-02-14 12:26:29.000000000 -0500 +@@ -25,6 +25,7 @@ + #include + + #include ++#include + #include + + static unsigned long _glibtop_sysdeps_shm_limits = +@@ -46,7 +47,11 @@ void + glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf) + { + size_t len; ++#if __FreeBSD_version < 800020 + int shmmax, shmmin, shmmni, shmseg, shmall; ++#else ++ unsigned long shmmax, shmmin, shmmni, shmseg, shmall; ++#endif + + glibtop_init_s (&server, GLIBTOP_SYSDEPS_SHM_LIMITS, 0); + -- cgit v1.2.3