aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/memdump
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-08-31 03:03:11 +0800
committerpav <pav@FreeBSD.org>2005-08-31 03:03:11 +0800
commit43badb79776ed890bee69ef534c04656e95db0c8 (patch)
tree76da2ff2cf301f1e0f2fa94c17bdf5cc427c9be4 /sysutils/memdump
parentf6344de8537099299d3f03f01fa93e72202934ca (diff)
downloadfreebsd-ports-gnome-43badb79776ed890bee69ef534c04656e95db0c8.tar.gz
freebsd-ports-gnome-43badb79776ed890bee69ef534c04656e95db0c8.tar.zst
freebsd-ports-gnome-43badb79776ed890bee69ef534c04656e95db0c8.zip
- Fix build on FreeBSD 7
PR: ports/85496 Submitted by: Jonathan <onatan@gmail.com> (maintainer)
Diffstat (limited to 'sysutils/memdump')
-rw-r--r--sysutils/memdump/files/patch-makedefs4
-rw-r--r--sysutils/memdump/files/patch-memdump.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/sysutils/memdump/files/patch-makedefs b/sysutils/memdump/files/patch-makedefs
index 049090df88f7..4cc519291954 100644
--- a/sysutils/memdump/files/patch-makedefs
+++ b/sysutils/memdump/files/patch-makedefs
@@ -1,6 +1,6 @@
--- makedefs.orig Sun Feb 20 15:41:41 2005
+++ makedefs Sun Feb 20 15:42:41 2005
-@@ -8,6 +8,10 @@
+@@ -8,6 +8,12 @@
;;
FreeBSD.4*) DEFS="-DFREEBSD4"
;;
@@ -8,6 +8,8 @@
+ ;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ ;;
++ FreeBSD.7*) DEFS="-DFREEBSD7"
++ ;;
OpenBSD.2*) DEFS="-DOPENBSD2"
;;
OpenBSD.3*) DEFS="-DOPENBSD3"
diff --git a/sysutils/memdump/files/patch-memdump.c b/sysutils/memdump/files/patch-memdump.c
index 018aa732934d..cb3c1f3ecd20 100644
--- a/sysutils/memdump/files/patch-memdump.c
+++ b/sysutils/memdump/files/patch-memdump.c
@@ -186,7 +186,7 @@
#if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
- || defined(FREEBSD5) \
-+ || defined(FREEBSD5) || defined(FREEBSD6) \
++ || defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
|| defined(OPENBSD2) || defined(OPENBSD3) \
|| defined(BSDI2) || defined(BSDI3) || defined(BSDI4)
#include <sys/param.h>
@@ -195,7 +195,7 @@
#if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
- || defined(FREEBSD5) \
-+ || defined(FREEBSD5) || defined(FREEBSD6) \
++ || defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
|| defined(OPENBSD2) || defined(OPENBSD3)
int name[] = {CTL_HW, HW_PHYSMEM};
size_t len;