From 42ba3c48e6c26c044cf7e58f6e4440b8d9b0bcf1 Mon Sep 17 00:00:00 2001 From: bapt Date: Sat, 30 Jul 2016 00:45:13 +0000 Subject: Prevent collision with getline(3) --- sysutils/sformat/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sysutils') 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 \ -- cgit