* lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 May 2006 17:49:21 +0000 (17:49 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 19 May 2006 17:49:21 +0000 (17:49 +0000)
commitc7d932558714df7c297f28f644d5cc45e9a42e23
tree5a030f9374b51440f446a8b03afaa2043f872a42
parentb7f6c3d2a70ee1403c4934e14c7c1e61b7d70c8b
* lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
Use the usual Autoconf way to include <time.h> and/or sys/time.h.
(my_usleep): Don't mishandle maximum value.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
gl_ rather than jm_.  Link, don't run, so that cross-compiles are
allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
not really conditional on the cache.
(gl_PREREQ_NANOSLEEP): Check for sys/select.h.
lib/ChangeLog
lib/nanosleep.c
m4/ChangeLog
m4/nanosleep.m4