mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
remove rt.h reference to BSD headers to avoid warnings and extra time-related headers (keep safe for musl time64). Optional hcitop tool still relies on BSD definitions for it's own part.
26 lines
613 B
Diff
26 lines
613 B
Diff
diff --git a/src/shared/rt.h b/src/shared/rt.h
|
|
index 24deb81..8a96542 100644
|
|
--- a/src/shared/rt.h
|
|
+++ b/src/shared/rt.h
|
|
@@ -20,9 +20,7 @@
|
|
#include <sys/time.h>
|
|
#include <time.h>
|
|
|
|
-#if HAVE_LIBBSD
|
|
-# include <bsd/sys/time.h>
|
|
-#else
|
|
+// timespecadd & timespecsub definitions come from <bsd/sys/time.h>
|
|
# define timespecadd(ts_a, ts_b, dest) do { \
|
|
(dest)->tv_sec = (ts_a)->tv_sec + (ts_b)->tv_sec; \
|
|
(dest)->tv_nsec = (ts_a)->tv_nsec + (ts_b)->tv_nsec; \
|
|
@@ -39,7 +37,6 @@
|
|
(dest)->tv_nsec += 1000000000L; \
|
|
} \
|
|
} while (0)
|
|
-#endif
|
|
|
|
/**
|
|
* Structure used for time synchronization.
|
|
--
|
|
2.30.2
|
|
|