From 3aeef51bb4a03b052baebd291704f556169a0e28 Mon Sep 17 00:00:00 2001 From: eadler Date: Fri, 25 May 2018 13:40:05 +0000 Subject: [PATCH] Add time2posix and posix2time to time.h These are documented in `time2posix.3` but the symbols are not actually visible. Since these are not POSIX hide them behind _BSD_VISIBLE. Reviewed by: wollman Differential Revision: https://reviews.freebsd.org/D15530 --- include/time.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/time.h b/include/time.h index 52c95918f116..e3c51abeb14c 100644 --- a/include/time.h +++ b/include/time.h @@ -199,6 +199,8 @@ void tzsetwall(void); time_t timelocal(struct tm * const); time_t timegm(struct tm * const); int timer_oshandle_np(timer_t timerid); +time_t time2posix(time_t t); +time_t posix2time(time_t t); #endif /* __BSD_VISIBLE */ #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)