summaryrefslogtreecommitdiffstats
path: root/x11/xco
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>2002-09-24 11:54:26 +0000
committeralex <alex@FreeBSD.org>2002-09-24 11:54:26 +0000
commitde13710c70a969d6ba9dcef7dd97945ccb982937 (patch)
treeef1b60880a8972e59a74ffdd93b0f26806ff6c72 /x11/xco
parent1eb703304b8ab05ff58b11605388850c3a627a4d (diff)
downloadFreeBSD-ports-de13710c70a969d6ba9dcef7dd97945ccb982937.zip
FreeBSD-ports-de13710c70a969d6ba9dcef7dd97945ccb982937.tar.gz
Don't declare malloc(), it's already in stdlib.h
Submitted by: bento
Diffstat (limited to 'x11/xco')
-rw-r--r--x11/xco/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11/xco/Makefile b/x11/xco/Makefile
index 5618c0e..1c39d84 100644
--- a/x11/xco/Makefile
+++ b/x11/xco/Makefile
@@ -14,10 +14,15 @@ DISTNAME= ${PORTNAME}
MAINTAINER= taoka@FreeBSD.org
USE_IMAKE= yes
+USE_REINPLACE= yes
MAN1= xco.1
MANCOMPRESSED= yes
DOCDIR= ${PREFIX}/share/doc/xco
+post-patch:
+ @${REINPLACE_CMD} -e 's/extern char \*malloc();//g' \
+ ${WRKSRC}/xco.c ${WRKSRC}/xargs.c
+
post-install:
@${MKDIR} ${DOCDIR}
@${INSTALL_DATA} ${FILESDIR}/copyright ${DOCDIR}
OpenPOWER on IntegriCloud