• Bruno Haible's avatar
    tsearch: Fix compilation error on Android. · b2399209
    Bruno Haible authored
    * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
    is 0.
    (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
    * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
    GNULIB_defined_tsearch is true.
    (twalk): Define only if GNULIB_defined_twalk is true.
    * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
    is 0.
    * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
    * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
    * modules/search (Makefile.am): Substitute HAVE_TWALK.
    b2399209