routing/olsrd/patches/010-musl.patch
Rosen Penev 14668df74b
olsrd: fix compilation with musl 1.2.x
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-11 12:38:12 -07:00

11 lines
320 B
Diff

--- a/lib/pud/nmealib/src/info.c
+++ b/lib/pud/nmealib/src/info.c
@@ -172,7 +172,7 @@ bool nmeaTimeParseDate(const char *s, NmeaTime *date) {
void nmeaTimeSet(NmeaTime *utc, uint32_t *present, struct timeval *timeval) {
struct timeval tv;
struct tm tm;
- long usec;
+ time_t usec;
if (!utc) {
return;