From 8f8b6ea23f94a0c743fffb7b580ca5ee561935d6 Mon Sep 17 00:00:00 2001 From: Ryan Steinmetz Date: Wed, 31 Aug 2011 19:13:08 +0000 Subject: Fix build under 7.x Reported by: pointyhat Approved by: wxs (mentor) --- emulators/desmume/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emulators/desmume') diff --git a/emulators/desmume/Makefile b/emulators/desmume/Makefile index 2cb9d221b598..04aceaabf383 100644 --- a/emulators/desmume/Makefile +++ b/emulators/desmume/Makefile @@ -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 -- cgit v1.2.3