Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readsbrrd: cast timespec.tv_sec addend to time_t
This fixes the following compile error on systems using musl libc: readsbrrd.c: In function 'main': readsbrrd.c:581:23: error: '__time_t' undeclared (first use in this function); did you mean 'time_t'? 581 | ts.tv_sec += (__time_t) (rrd.step * 1.5); | ^~~~~~~~ | time_t Compile-tested on both glibc and musl systems. Signed-off-by: Stijn Tintel <[email protected]>
- Loading branch information