summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/loslib.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/loslib.c')
-rw-r--r--apps/plugins/lua/loslib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lua/loslib.c b/apps/plugins/lua/loslib.c
index 9d29e905e1..19fef84a9c 100644
--- a/apps/plugins/lua/loslib.c
+++ b/apps/plugins/lua/loslib.c
@@ -67,6 +67,7 @@ static void setboolfield (lua_State *L, const char *key, int value) {
67 lua_setfield(L, -2, key); 67 lua_setfield(L, -2, key);
68} 68}
69 69
70#if CONFIG_RTC
70static int getboolfield (lua_State *L, const char *key) { 71static int getboolfield (lua_State *L, const char *key) {
71 int res; 72 int res;
72 lua_getfield(L, -1, key); 73 lua_getfield(L, -1, key);
@@ -89,6 +90,7 @@ static int getfield (lua_State *L, const char *key, int d) {
89 lua_pop(L, 1); 90 lua_pop(L, 1);
90 return res; 91 return res;
91} 92}
93#endif
92 94
93 95
94static int os_date (lua_State *L) { 96static int os_date (lua_State *L) {