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:
parent
add90dd319
commit
d5f9a73cc0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191938
@ -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
|
||||
|
||||
|
14
misc/asbutton/files/patch-asbutton.c
Normal file
14
misc/asbutton/files/patch-asbutton.c
Normal 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);
|
Loading…
Reference in New Issue
Block a user