Mercurial > hg > octave-nkf > gnulib-hg
changeset 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 | 79eaf2932dad |
children | 9b123d1aa781 |
files | ChangeLog lib/nanosleep.c modules/nanosleep |
diffstat | 3 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-06-21 Eric Blake <ebb9@byu.net> + Fix nanosleep module on mingw. + * modules/nanosleep (Depends-on): Add sys_select. + * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module. + Fix licensing of sigprocmask. * modules/raise (License): Relicense as LGPL.
--- 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>