svn commit: r419291 - head/sysutils/sformat
Baptiste Daroussin
bapt at FreeBSD.org
Sat Jul 30 00:45:14 UTC 2016
Author: bapt
Date: Sat Jul 30 00:45:13 2016
New Revision: 419291
URL: https://svnweb.freebsd.org/changeset/ports/419291
Log:
Prevent collision with getline(3)
Modified:
head/sysutils/sformat/Makefile
Modified: head/sysutils/sformat/Makefile
==============================================================================
--- head/sysutils/sformat/Makefile Sat Jul 30 00:41:00 2016 (r419290)
+++ head/sysutils/sformat/Makefile Sat Jul 30 00:45:13 2016 (r419291)
@@ -44,6 +44,14 @@ post-patch:
.for i in include/schily.h libschily/fexec.c libschily/libschily-mapvers
@${REINPLACE_CMD} -e 's|fexecve|js_fexecve|g' ${WRKSRC}/${i}
.endfor
+ @${REINPLACE_CMD} -e 's|int getline|int get_line|g' ${WRKSRC}/include/schily.h
+ @${REINPLACE_CMD} -e 's|(getline(|(get_line(|g' ${WRKSRC}/sformat/io.c \
+ ${WRKSRC}/libscg/scsitransp.c
+ @${REINPLACE_CMD} -e 's| getline(| get_line(|g' ${WRKSRC}/sformat/io.c \
+ ${WRKSRC}/sformat/defect.c
+ @${REINPLACE_CMD} -e 's|^getline|get_line|g' ${WRKSRC}/libschily/stdio/fgetline.c
+ @${REINPLACE_CMD} -e 's|)getline|)get_line|g' ${WRKSRC}/sformat/diskfmt.c
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sformat/OBJ/${SFMTTARGET}/sformat \
More information about the svn-ports-head
mailing list