comparison lib/nanosleep.c @ 10227:51cc8a81238b

Fix nanosleep module on mingw. * modules/nanosleep (Depends-on): Add sys_select. * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Sat, 21 Jun 2008 13:04:16 -0600
parents bbbbbf4cd1c5
children 54813304edd2
comparison
equal deleted inserted replaced
10226:79eaf2932dad 10227:51cc8a81238b
1 /* Provide a replacement for the POSIX nanosleep function. 1 /* Provide a replacement for the POSIX nanosleep function.
2 2
3 Copyright (C) 1999, 2000, 2002, 2004, 2005, 2006, 2007 Free 3 Copyright (C) 1999, 2000, 2002, 2004, 2005, 2006, 2007, 2008 Free
4 Software Foundation, Inc. 4 Software Foundation, Inc.
5 5
6 This program is free software: you can redistribute it and/or modify 6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or 8 the Free Software Foundation; either version 3 of the License, or
25 #include "timespec.h" 25 #include "timespec.h"
26 26
27 #include <stdbool.h> 27 #include <stdbool.h>
28 #include <stdio.h> 28 #include <stdio.h>
29 #include <sys/types.h> 29 #include <sys/types.h>
30 #if HAVE_SYS_SELECT_H 30 #include <sys/select.h>
31 # include <sys/select.h>
32 #endif
33 #include <signal.h> 31 #include <signal.h>
34 32
35 #include <sys/time.h> 33 #include <sys/time.h>
36 #include <errno.h> 34 #include <errno.h>
37 35