- Fix build on FreeBSD 7

PR:		ports/85496
Submitted by:	Jonathan <onatan@gmail.com> (maintainer)
This commit is contained in:
Pav Lucistnik 2005-08-30 19:03:11 +00:00
parent 6408422021
commit bc10a85def
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=141488
2 changed files with 5 additions and 3 deletions

View File

@ -1,12 +1,14 @@
--- 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"
;;
+ FreeBSD.5*) DEFS="-DFREEBSD5"
+ ;;
+ FreeBSD.6*) DEFS="-DFREEBSD6"
+ ;;
+ FreeBSD.7*) DEFS="-DFREEBSD7"
+ ;;
OpenBSD.2*) DEFS="-DOPENBSD2"
;;

View File

@ -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;