diff options
author | Bruno Haible <bruno@clisp.org> | 2008-08-30 03:09:15 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-08-30 03:09:15 +0200 |
commit | c2318e88599d84748f3537b54646913f0af0eb20 (patch) | |
tree | faae2b8061a1fc690faeea900d93980acf62e12c /modules/lock-tests | |
parent | dab70a1d6f9de4a28cde076f441ea98bb16690b2 (diff) | |
download | gnulib-c2318e88599d84748f3537b54646913f0af0eb20.tar.gz |
Avoid some "gcc -pedantic" warnings.
Diffstat (limited to 'modules/lock-tests')
-rw-r--r-- | modules/lock-tests | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/modules/lock-tests b/modules/lock-tests index 7c72c94734..d0e5010508 100644 --- a/modules/lock-tests +++ b/modules/lock-tests @@ -2,20 +2,12 @@ Files: tests/test-lock.c Depends-on: +thread +yield configure.ac: -dnl Checks for special libraries for the tests/test-lock test. -dnl On some systems, sched_yield is in librt, rather than in libpthread. -LIBSCHED= -if test $gl_threads_api = posix; then - dnl Solaris has sched_yield in librt, not in libpthread or libc. - AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt], - [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt. - AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])]) -fi -AC_SUBST([LIBSCHED]) Makefile.am: TESTS += test-lock check_PROGRAMS += test-lock -test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @LIBSCHED@ +test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ |