Skip to content

Commit

Permalink
Merge pull request #33 from stintel/musl
Browse files Browse the repository at this point in the history
Fix compilation against musl libc
  • Loading branch information
Mictronics authored Jul 10, 2024
2 parents 8e5c54b + f1a986c commit 689f552
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compat/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#else // other platforms

# include <endian.h>
# include <byteswap.h>

#endif

Expand Down
2 changes: 1 addition & 1 deletion readsbrrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ int main(int argc, char** argv) {
// Run this until we get a termination signal.
while (!readsbrrd_exit) {
clock_gettime(CLOCK_REALTIME, &ts);
ts.tv_sec += (__time_t) (rrd.step * 1.5);
ts.tv_sec += (time_t) rrd.step * 1.5;
r = sem_getvalue(stats_semptr, &semcnt);
// Avoid frequent updates when more than one event is queued in semaphore.
// Update only one very last event.
Expand Down

0 comments on commit 689f552

Please sign in to comment.