diff options
author | bapt <bapt@FreeBSD.org> | 2016-07-30 08:45:13 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-07-30 08:45:13 +0800 |
commit | 42ba3c48e6c26c044cf7e58f6e4440b8d9b0bcf1 (patch) | |
tree | f670b3dce4b9d35d2670dffd5ca3be4521f064a7 /sysutils | |
parent | 270910d757e489824d6792b044dc3bff4e023379 (diff) | |
download | freebsd-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/Makefile | 8 |
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 \ |