From dd8af96ddf4aa943d71a0f2cee7a5e4e0f1c1a31 Mon Sep 17 00:00:00 2001 From: johans Date: Tue, 21 Jun 2011 19:20:02 +0000 Subject: Fix C error (missing return value). Fixes compilation with clang. --- graphics/xpaint/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics/xpaint') diff --git a/graphics/xpaint/Makefile b/graphics/xpaint/Makefile index b597e2d55201..8d4e060edbba 100644 --- a/graphics/xpaint/Makefile +++ b/graphics/xpaint/Makefile @@ -33,6 +33,8 @@ post-patch: 's|@PREFIX@|${PREFIX}|g ; \ s|@XPMDIR@|${LOCALBASE}|g ; \ s|@LOCALBASE@|${LOCALBASE}|g' ${WRKSRC}/Local.config + @${REINPLACE_CMD} -e '/if (!image)/s/return;/return -1;/' \ + ${WRKSRC}/rw/readWriteTGA.c pre-configure: @cd ${WRKSRC} && ${SH} ./configure xaw3dxft.a -- cgit