From c6cc3d15de18024786b791f2466484050e22eca4 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 14 Apr 2019 00:40:01 +0200 Subject: [PATCH] : Provide time2posix(), posix2time() prototypes. They have a manual page too. Also provide offtime() and timeoff() prototypes. Fixes some -Wmissing-prototypes warnings. --- include/time.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/time.h b/include/time.h index 2a84b39a49..1825f454b8 100644 --- a/include/time.h +++ b/include/time.h @@ -212,6 +212,10 @@ int getcpuclockid(pid_t, lwpid_t, clockid_t *); void tzsetwall(void); time_t timelocal(struct tm * const); time_t timegm(struct tm * const); +time_t time2posix(time_t); +time_t posix2time(time_t); +struct tm *offtime(const time_t * const, const long); +time_t timeoff(struct tm * const, const long); #endif /* __BSD_VISIBLE */ #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_) -- 2.41.0