Don't include config.h.
authorJim Meyering <jim@meyering.net>
Thu, 10 Feb 2000 09:38:31 +0000 (09:38 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 10 Feb 2000 09:38:31 +0000 (09:38 +0000)
Remove prototype from declaration of nanosleep.
(PARAMS): Remove now-unneeded definition.

lib/nanosleep.h

index 92898d36171b9bf16f2ae3a1a6bd527144c61cfa..2019ed50c995b98c6c2513be20b74e25ca9a7892 100644 (file)
 #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