From 1b96aaa5ef034e814cffe1d2af05193ea81bfcd0 Mon Sep 17 00:00:00 2001 From: millert <> Date: Fri, 9 Mar 2001 02:18:00 +0000 Subject: [PATCH] Move nanosleep() proto to from sys/time.h to time.h where it belongs. Problem noted by Jean-Baptiste Marchand --- src/include/time.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/time.h b/src/include/time.h index d929141e..800bc442 100644 --- a/src/include/time.h +++ b/src/include/time.h @@ -1,4 +1,4 @@ -/* $OpenBSD: time.h,v 1.9 2000/08/22 13:59:44 millert Exp $ */ +/* $OpenBSD: time.h,v 1.10 2001/03/09 02:18:00 millert Exp $ */ /* $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ */ /* @@ -89,6 +89,7 @@ struct tm { #include __BEGIN_DECLS +struct timespec; char *asctime __P((const struct tm *)); clock_t clock __P((void)); char *ctime __P((const time_t *)); @@ -103,6 +104,7 @@ char *asctime_r __P((const struct tm *, char *)); char *ctime_r __P((const time_t *, char *)); struct tm *gmtime_r __P((const time_t *, struct tm *)); struct tm *localtime_r __P((const time_t *, struct tm *)); +int nanosleep __P((const struct timespec *, struct timespec *)); #if !defined(_ANSI_SOURCE) #define CLK_TCK 100