diff options
author | vanilla <vanilla@FreeBSD.org> | 2000-01-02 16:43:07 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2000-01-02 16:43:07 +0800 |
commit | 0d514e0269195ca83fb9dd7d4a81956c464a6f5b (patch) | |
tree | 675d9a116fa5141d51d2652db18d59fe7cf2fb6d /devel/libgtop | |
parent | 0eda6ce5fd6c8ab36fad64e4167f0c7c4fa05530 (diff) | |
download | freebsd-ports-gnome-0d514e0269195ca83fb9dd7d4a81956c464a6f5b.tar.gz freebsd-ports-gnome-0d514e0269195ca83fb9dd7d4a81956c464a6f5b.tar.zst freebsd-ports-gnome-0d514e0269195ca83fb9dd7d4a81956c464a6f5b.zip |
Make it compileable on -current (__FreeBSD_version is 400013).
PR: ports/15776
Submitted by: Ade Lovett <ade@lovett.com>
Diffstat (limited to 'devel/libgtop')
-rw-r--r-- | devel/libgtop/files/patch-ah | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/devel/libgtop/files/patch-ah b/devel/libgtop/files/patch-ah new file mode 100644 index 000000000000..3a24572bdaaf --- /dev/null +++ b/devel/libgtop/files/patch-ah @@ -0,0 +1,36 @@ +--- sysdeps/freebsd/procmap.c.orig Fri May 28 02:56:48 1999 ++++ sysdeps/freebsd/procmap.c Sun Jan 2 16:24:43 2000 +@@ -33,7 +33,11 @@ + #include <sys/proc.h> + #include <sys/resource.h> + #include <vm/vm_object.h> ++#if (__FreeBSD_version >= 400011) ++#include <vm/vm.h> ++#else + #include <vm/vm_prot.h> ++#endif + #include <vm/vm_map.h> + + #include <sys/vnode.h> +--- sysdeps/freebsd/sem_limits.c.orig Sun Jan 2 16:32:20 2000 ++++ sysdeps/freebsd/sem_limits.c Sun Jan 2 16:35:00 2000 +@@ -46,7 +46,7 @@ + + /* #define KERNEL to get declaration of `struct seminfo'. */ + +-#if defined(__FreeBSD__) || defined(__bsdi__) ++#if defined(__bsdi__) || (__FreeBSD_version < 400011) + #define KERNEL 1 + #else + #define _KERNEL 1 +--- sysdeps/freebsd/shm_limits.c.orig Sun Jan 2 16:27:59 2000 ++++ sysdeps/freebsd/shm_limits.c Sun Jan 2 16:35:18 2000 +@@ -46,7 +46,7 @@ + + /* #define KERNEL to get declaration of `struct shminfo'. */ + +-#if defined(__FreeBSD__) || defined(__bsdi__) ++#if defined(__bsdi__) || (__FreeBSD_version < 400011) + #define KERNEL 1 + #else + #define _KERNEL 1 |