Mercurial > hg > octave-lyh > gnulib-hg
changeset 9943:07d10f7b50cd
Fix link error on mingw.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 20 Apr 2008 13:15:16 +0200 |
parents | 6c1b311583d7 |
children | 816616dfafa4 |
files | ChangeLog modules/tsearch-tests tests/test-tsearch.c |
diffstat | 3 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-20 Bruno Haible <bruno@clisp.org> + + * tests/test-tsearch.c (main): Don't use initstate if it is missing. + * modules/tsearch-tests (configure.ac): Test for initstate function. + 2008-04-20 Bruno Haible <bruno@clisp.org> * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
--- a/modules/tsearch-tests +++ b/modules/tsearch-tests @@ -15,6 +15,7 @@ double x;], [x = log (x);], , [TEST_TSEARCH_LIBM=-lm]) AC_SUBST([TEST_TSEARCH_LIBM]) +AC_CHECK_FUNCS([initstate]) Makefile.am: TESTS += test-tsearch.sh
--- a/tests/test-tsearch.c +++ b/tests/test-tsearch.c @@ -1,5 +1,5 @@ /* Test program for tsearch et al. - Copyright (C) 1997, 2000, 2001, 2007 Free Software Foundation, Inc. + Copyright (C) 1997, 2000-2001, 2007-2008 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software: you can redistribute it and/or @@ -256,7 +256,9 @@ void *root = NULL; int i, j; +#if HAVE_INITSTATE initstate (SEED, state, 8); +#endif for (i = 0; i < SIZE; ++i) x[i] = i;