1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00

Prevent collision with getline(3)

This commit is contained in:
Baptiste Daroussin 2016-07-30 00:45:13 +00:00
parent b379716217
commit 007e9c0077
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419291

View File

@ -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 \