aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-07-30 08:45:13 +0800
committerbapt <bapt@FreeBSD.org>2016-07-30 08:45:13 +0800
commit42ba3c48e6c26c044cf7e58f6e4440b8d9b0bcf1 (patch)
treef670b3dce4b9d35d2670dffd5ca3be4521f064a7 /sysutils
parent270910d757e489824d6792b044dc3bff4e023379 (diff)
downloadfreebsd-ports-graphics-42ba3c48e6c26c044cf7e58f6e4440b8d9b0bcf1.tar.gz
freebsd-ports-graphics-42ba3c48e6c26c044cf7e58f6e4440b8d9b0bcf1.tar.zst
freebsd-ports-graphics-42ba3c48e6c26c044cf7e58f6e4440b8d9b0bcf1.zip
Prevent collision with getline(3)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/sformat/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysutils/sformat/Makefile b/sysutils/sformat/Makefile
index 0c6f45b64ef..6c27c7e4755 100644
--- a/sysutils/sformat/Makefile
+++ b/sysutils/sformat/Makefile
@@ -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 \