1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Fix build with gcc4.2

This commit is contained in:
Kirill Ponomarev 2007-05-26 20:39:02 +00:00
parent add90dd319
commit d5f9a73cc0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191938
2 changed files with 14 additions and 4 deletions

View File

@ -23,10 +23,6 @@ MAKE_ARGS= INCLUDES="-I${X11BASE}/include/X11 -I${X11BASE}/include" \
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
BROKEN= Broken with gcc 4.2
.endif
post-patch:
@${REINPLACE_CMD} -e 's:gcc :${CC} :' ${WRKSRC}/Makefile

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- asbutton.c.orig
+++ asbutton.c
@@ -605,7 +605,7 @@
continue;
}
if ( !strncasecmp(line, "button", 6))
- if (atoi(&(char)line[6]) == position)
+ if (atoi((char)line[6]) == position)
break;
}
} while (1);