From 06e78dc883fa8da8d16a5be02d4c306e7e0ca758 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Wed, 16 Sep 2020 21:17:42 +0800 Subject: [PATCH] libc/time: redirect timegm(3) to mktime(3) See the reference here: https://man7.org/linux/man-pages/man3/timegm.3.html Change-Id: Ic583b1bd5c7da02086aef7ff043003e402faa4d4 Signed-off-by: chao.an --- include/time.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/time.h b/include/time.h index 862c6d241b..e78ded7332 100644 --- a/include/time.h +++ b/include/time.h @@ -100,6 +100,10 @@ #define TIME_UTC 1 +/* Redirect the timegm */ + +#define timegm mktime + /******************************************************************************** * Public Types ********************************************************************************/