Fix build under 7.x

Reported by:	pointyhat
Approved by:	wxs (mentor)
This commit is contained in:
Ryan Steinmetz 2011-08-31 19:13:08 +00:00
parent 82dc585687
commit 8f8b6ea23f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=280882

View file

@ -46,5 +46,9 @@ BROKEN= Does not compile on ia64
post-patch:
@${REINPLACE_CMD} -e 's|mode_t|mode_t_|g' ${WRKSRC}/src/utils/libfat/libfat_pc.h
# FreeBSD 7.x is missing strnlen(), adjusting this enables a builtin version of strnlen()
.if ${OSVERSION} < 800000
@${REINPLACE_CMD} -e 's|#ifdef __APPLE__|#if 1|g' ${WRKSRC}/src/utils/libfat/directory.cpp
.endif
.include <bsd.port.post.mk>