Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/mdocml/dist Fix configure script to not always ...



details:   https://anonhg.NetBSD.org/src/rev/ca266977dc22
branches:  trunk
changeset: 352169:ca266977dc22
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Mar 19 16:51:45 2017 +0000

description:
Fix configure script to not always provide an extern for strsep().

diffstat:

 external/bsd/mdocml/dist/configure |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r af1b03d7e61a -r ca266977dc22 external/bsd/mdocml/dist/configure
--- a/external/bsd/mdocml/dist/configure        Sun Mar 19 15:34:26 2017 +0000
+++ b/external/bsd/mdocml/dist/configure        Sun Mar 19 16:51:45 2017 +0000
@@ -452,9 +452,10 @@
 [ ${HAVE_STRLCPY} -eq 0 ] && \
        echo "extern    size_t    strlcpy(char *, const char *, size_t);"
 
-[ ${HAVE_STRSEP} -eq 0 ] && \
+if [ ${HAVE_STRSEP} -eq 0 ]; then
        echo "#undef strsep"
        echo "extern    char     *strsep(char **, const char *);"
+fi
 
 [ ${HAVE_STRTONUM} -eq 0 ] && \
        echo "extern    long long strtonum(const char *, long long, long long, const char **);"



Home | Main Index | Thread Index | Old Index