Mercurial > hg > octave-nkf > gnulib-hg
diff 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 |
line wrap: on
line diff
--- a/lib/nanosleep.c +++ b/lib/nanosleep.c @@ -1,6 +1,6 @@ /* Provide a replacement for the POSIX nanosleep function. - Copyright (C) 1999, 2000, 2002, 2004, 2005, 2006, 2007 Free + Copyright (C) 1999, 2000, 2002, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -27,9 +27,7 @@ #include <stdbool.h> #include <stdio.h> #include <sys/types.h> -#if HAVE_SYS_SELECT_H -# include <sys/select.h> -#endif +#include <sys/select.h> #include <signal.h> #include <sys/time.h>