X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fnanosleep.h;h=2019ed50c995b98c6c2513be20b74e25ca9a7892;hb=43b11415979758aef2b3a58f058086ae01909a9f;hp=be28d7637d717892c5fec1bac6f86453745e4d2f;hpb=348b75da7a2f93a5a7509b643788fca7340f7271;p=gnulib.git diff --git a/lib/nanosleep.h b/lib/nanosleep.h index be28d7637..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 -# 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 @@ -50,8 +40,10 @@ struct timespec }; # endif -int -nanosleep PARAMS ((const struct timespec *requested_delay, - struct timespec *remaining_delay)); +# if ! HAVE_DECL_NANOSLEEP +/* 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