A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

Fix red builds (with frustration)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8941 a1c6a512-1295-4272-9138-f99709370657

+11 -11
+11 -11
firmware/common/timefuncs.c
··· 46 46 struct tm *get_time(void) 47 47 { 48 48 #ifndef SIMULATOR 49 + #ifdef CONFIG_RTC 49 50 static long last_tick = 0; 50 51 51 52 /* Don't read the RTC more than 4 times per second */ 52 53 if (last_tick + HZ < current_tick) { 53 - #ifdef CONFIG_RTC 54 54 char rtcbuf[7]; 55 55 last_tick = HZ * (current_tick / HZ); 56 56 rtc_read_datetime(rtcbuf); ··· 65 65 66 66 tm.tm_yday = 0; /* Not implemented for now */ 67 67 tm.tm_isdst = -1; /* Not implemented for now */ 68 + } 68 69 #else 69 - tm.tm_sec = 0; 70 - tm.tm_min = 0; 71 - tm.tm_hour = 0; 72 - tm.tm_mday = 1; 73 - tm.tm_mon = 0; 74 - tm.tm_year = 70; 75 - tm.tm_wday = 1; 76 - tm.tm_yday = 0; /* Not implemented for now */ 77 - tm.tm_isdst = -1; /* Not implemented for now */ 70 + tm.tm_sec = 0; 71 + tm.tm_min = 0; 72 + tm.tm_hour = 0; 73 + tm.tm_mday = 1; 74 + tm.tm_mon = 0; 75 + tm.tm_year = 70; 76 + tm.tm_wday = 1; 77 + tm.tm_yday = 0; /* Not implemented for now */ 78 + tm.tm_isdst = -1; /* Not implemented for now */ 78 79 #endif 79 - } 80 80 return &tm; 81 81 #else 82 82 time_t now = time(NULL);