]> Savannah Git Hosting - gnulib.git/commit
tsearch: Fix compilation error on Android.
authorBruno Haible <bruno@clisp.org>
Sun, 13 May 2018 22:02:48 +0000 (00:02 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 May 2018 22:02:48 +0000 (00:02 +0200)
commitb239920976585555781e8ed56ee8ba95ef2060f7
tree61ad3dff70452ea029a6cc7a1360041d5d9d3044
parent88d119b2a44243255dbcd720e296393986d16551
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.
ChangeLog
lib/search.in.h
lib/tsearch.c
m4/search_h.m4
m4/tsearch.m4
modules/search
modules/tsearch