diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2008-02-24 03:11:57 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2008-02-24 03:11:57 +0000 |
commit | fa4a943c17e47bf910596a414fd7287983350b9b (patch) | |
tree | dc76cec18a505befc330e612e0a56bf1caa5ca49 /devel/libgtop/files/patch-sysdeps_freebsd_shm_limits.c | |
parent | - Fix manpage pointing to correct PREFIX for binary and conf (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_0_0'.release/7.0.0
Diffstat (limited to 'devel/libgtop/files/patch-sysdeps_freebsd_shm_limits.c')
-rw-r--r-- | devel/libgtop/files/patch-sysdeps_freebsd_shm_limits.c | 22 |
1 files changed, 22 insertions, 0 deletions
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 000000000000..8fa00f388d8c --- /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 <glibtop/shm_limits.h> + + #include <sys/types.h> ++#include <sys/param.h> + #include <sys/sysctl.h> + + 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 < 700002 + int shmmax, shmmin, shmmni, shmseg, shmall; ++#else ++ unsigned long shmmax, shmmin, shmmni, shmseg, shmall; ++#endif + + glibtop_init_s (&server, GLIBTOP_SYSDEPS_SHM_LIMITS, 0); + |