nanosleep: improve port to mingw
authorEric Blake <ebb9@byu.net>
Thu, 19 Nov 2009 05:14:39 +0000 (22:14 -0700)
committerEric Blake <ebb9@byu.net>
Fri, 20 Nov 2009 14:12:32 +0000 (07:12 -0700)
commitaddbb8a80994c7133922f2904dfb929481a3ac17
tree1a487d36c3124333c3ef0527d6b8611c4d3aeb4e
parenta905b35027f406a031a844995b32b7b9291d0336
nanosleep: improve port to mingw

test-nanosleep failed to link, and exposed a need for argument
validation when nanosleep is missing.

* lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
LIB_NANOSLEEP, but only when needed.
* modules/select (Link): Document LIBSOCKET.
* m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
enough.
ChangeLog
lib/nanosleep.c
m4/nanosleep.m4
m4/select.m4
modules/select