diff options
author | Jim Meyering <jim@meyering.net> | 2000-02-10 09:38:31 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-02-10 09:38:31 +0000 |
commit | d9aece69b3f006073bd4cf83df4cd730bef8cd3a (patch) | |
tree | c3d75188440347a56eea18d8e6a2aa06a16bec3d /lib | |
parent | d31f3e34a693d39f24655ee75588e9a6128080bb (diff) | |
download | coreutils-d9aece69b3f006073bd4cf83df4cd730bef8cd3a.tar.xz |
Don't include config.h.
Remove prototype from declaration of nanosleep.
(PARAMS): Remove now-unneeded definition.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nanosleep.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/lib/nanosleep.h b/lib/nanosleep.h index 92898d361..2019ed50c 100644 --- a/lib/nanosleep.h +++ b/lib/nanosleep.h @@ -17,17 +17,7 @@ #if ! defined NANOSLEEP_H # define NANOSLEEP_H -# if HAVE_CONFIG_H -# include <config.h> -# endif - -# ifndef PARAMS -# if defined PROTOTYPES || (defined __STDC__ && __STDC__) -# define PARAMS(Args) Args -# else -# define PARAMS(Args) () -# endif -# endif +/* You must include config.h before including this file. */ # include <sys/types.h> # if TIME_WITH_SYS_TIME @@ -51,9 +41,9 @@ struct timespec # endif # if ! HAVE_DECL_NANOSLEEP -int -nanosleep PARAMS ((const struct timespec *requested_delay, - struct timespec *remaining_delay)); +/* Don't specify a prototype here. Some systems (e.g., OSF) declare + nanosleep with a conflicting one (const-less first parameter). */ +int nanosleep (); # endif #endif |