From 86a132d123ca4ebea7687f55e30c53a319833f58 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 10 Feb 2000 09:38:31 +0000 Subject: [PATCH] Don't include config.h. Remove prototype from declaration of nanosleep. (PARAMS): Remove now-unneeded definition. --- lib/nanosleep.h | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/lib/nanosleep.h b/lib/nanosleep.h index 92898d3617..2019ed50c9 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 -# 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 # 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 -- 2.30.2