summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-11-23 22:38:00 -0500
committerMeco Man <[email protected]>2021-11-23 22:38:00 -0500
commita1cc3d43e71819b3f12c3673187b6316d083ef6c (patch)
treefe100bed622711f6cb5251b540d2228d01cf68f4 /components
parent7dabc3844cfcc00f11f13da86a8d875c79531700 (diff)
modify time.h to sys/time.h
Diffstat (limited to 'components')
-rw-r--r--components/drivers/include/drivers/alarm.h3
-rw-r--r--components/drivers/rtc/rtc.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/components/drivers/include/drivers/alarm.h b/components/drivers/include/drivers/alarm.h
index 11637df949..56822b72e1 100644
--- a/components/drivers/include/drivers/alarm.h
+++ b/components/drivers/include/drivers/alarm.h
@@ -13,7 +13,8 @@
#ifndef __ALARM_H__
#define __ALARM_H__
-#include <time.h>
+#include <sys/time.h>
+#include <rtdef.h>
#define RT_ALARM_TM_NOW -1 /* set the alarm tm_day,tm_mon,tm_sec,etc.
to now.we also call it "don't care" value */
diff --git a/components/drivers/rtc/rtc.c b/components/drivers/rtc/rtc.c
index 0658d2aaf4..39f82499f5 100644
--- a/components/drivers/rtc/rtc.c
+++ b/components/drivers/rtc/rtc.c
@@ -14,7 +14,7 @@
* 2021-07-30 Meco Man move rtc_core.c to rtc.c
*/
-#include <time.h>
+#include <sys/time.h>
#include <string.h>
#include <stdlib.h>
#include <rtthread.h>