Skip to content

Commit 689f552

Browse files
authored
Merge pull request #33 from stintel/musl
Fix compilation against musl libc
2 parents 8e5c54b + f1a986c commit 689f552

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compat/compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#else // other platforms
2222

23-
# include <endian.h>
23+
# include <byteswap.h>
2424

2525
#endif
2626

readsbrrd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ int main(int argc, char** argv) {
587587
// Run this until we get a termination signal.
588588
while (!readsbrrd_exit) {
589589
clock_gettime(CLOCK_REALTIME, &ts);
590-
ts.tv_sec += (__time_t) (rrd.step * 1.5);
590+
ts.tv_sec += (time_t) rrd.step * 1.5;
591591
r = sem_getvalue(stats_semptr, &semcnt);
592592
// Avoid frequent updates when more than one event is queued in semaphore.
593593
// Update only one very last event.

0 commit comments

Comments
 (0)