summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/timefuncs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c
index d073ec819c..9865b0fe17 100644
--- a/firmware/common/timefuncs.c
+++ b/firmware/common/timefuncs.c
@@ -131,6 +131,7 @@ int set_time(const struct tm *tm)
131#endif 131#endif
132} 132}
133 133
134#if CONFIG_RTC
134/* mktime() code taken from lynx-2.8.5 source, written 135/* mktime() code taken from lynx-2.8.5 source, written
135 by Philippe De Muyter <phdm@macqel.be> */ 136 by Philippe De Muyter <phdm@macqel.be> */
136time_t mktime(struct tm *t) 137time_t mktime(struct tm *t)
@@ -165,3 +166,4 @@ time_t mktime(struct tm *t)
165 result += t->tm_sec; 166 result += t->tm_sec;
166 return(result); 167 return(result);
167} 168}
169#endif