X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fnanosleep.h;h=2019ed50c995b98c6c2513be20b74e25ca9a7892;hb=d770149b4365cf33e764e63ed68e1fccab94b823;hp=92898d36171b9bf16f2ae3a1a6bd527144c61cfa;hpb=a3f7fe07da4d7fd3283757af337e27390ee198cc;p=gnulib.git 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 -# 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