Fix build on 6-current

PR:		ports/74733
Submitted by:	Ports Fury
This commit is contained in:
Kirill Ponomarev 2004-12-05 18:43:12 +00:00
parent edb8841271
commit 48c8dc65fc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123256
2 changed files with 13 additions and 8 deletions

View file

@ -16,17 +16,12 @@ COMMENT= An AfterStep look-n-feel memory utilization monitor
USE_X_PREFIX= yes
USE_XPM= yes
GNU_CONFIGURE= yes
MAN1= asmem.1
PLIST_FILES= bin/asmem
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 600000
BROKEN= "Does not compile on FreeBSD >= 6.x"
.endif
do-install:
${INSTALL_PROGRAM} -g kmem -m 2755 ${WRKSRC}/asmem ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/asmem.man ${PREFIX}/man/man1/asmem.1
${INSTALL_MAN} ${WRKSRC}/asmem.man ${MANPREFIX}/man/man1/asmem.1
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -0,0 +1,10 @@
--- read_mem.c.dist Fri Sep 19 01:06:01 2003
+++ read_mem.c Tue Nov 30 18:52:06 2004
@@ -56,6 +56,7 @@
// Machine dependent headers
// FreeBSD
#if defined(__FreeBSD__)
+#include <sys/param.h>
#include <sys/conf.h>
#include <osreldate.h>
#include <kvm.h>