Hash :
b2399209
Author :
Date :
2018-05-14T00:02:48
tsearch: Fix compilation error on Android. * 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.
Description:
Binary tree data structure.
Files:
lib/tsearch.c
m4/tsearch.m4
Depends-on:
search
configure.ac:
gl_FUNC_TSEARCH
if test $HAVE_TSEARCH = 0 || test $HAVE_TWALK = 0 || test $REPLACE_TSEARCH = 1; then
AC_LIBOBJ([tsearch])
gl_PREREQ_TSEARCH
fi
gl_SEARCH_MODULE_INDICATOR([tsearch])
Makefile.am:
Include:
<search.h>
License:
LGPL
Maintainer:
all, glibc