1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Fix the build with GCC 4.2

- Remove BROKEN tag

Reported by:	pointyhat (logs)
This commit is contained in:
Alexey Dokuchaev 2007-06-18 21:35:50 +00:00
parent 40bd9f0101
commit 8049a87680
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193835
2 changed files with 32 additions and 7 deletions

View File

@ -21,12 +21,6 @@ PROGRAMS= crimap
EXAMPLES= chr7a.gen demo.dat
EXIT_PATCH= e_ped.c get_log.c our_allo.c our_orde.c
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
BROKEN= Broken with gcc 4.2
.endif
post-patch:
.for file in ${EXIT_PATCH}
@${REINPLACE_CMD} -e 's|exit\ *()|exit(0)|' ${WRKSRC}/${file}
@ -50,4 +44,4 @@ do-install:
.endfor
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -0,0 +1,31 @@
--- our_allo.c.orig Tue Jun 19 04:31:56 2007
+++ our_allo.c Tue Jun 19 04:30:44 2007
@@ -21,10 +21,11 @@
static HEADER base;
static HEADER *allocp = NULL;
+static HEADER *morecore();
+
char *our_alloc(nbytes)
ALLOC nbytes;
{
- HEADER *morecore();
HEADER *p;
HEADER *q;
ALLOC nunits;
diff -ur work/our_orde.c foo/our_orde.c
--- our_orde.c.orig Tue Jun 19 04:31:56 2007
+++ our_orde.c Tue Jun 19 04:31:30 2007
@@ -21,10 +21,11 @@
static HEADER orders_base;
static HEADER *orders_allocp = NULL;
+static HEADER *orders_morecore();
+
char *our_orders_alloc(nbytes)
ALLOC nbytes;
{
- HEADER *orders_morecore();
HEADER *p, *q;
ALLOC nunits;