1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/bluez-alsa/0001-remove-bsd-sys-time.h-include.patch
macmpi 43255dc3e1 community/bluez-alsa: build all utilities into a utils sub-package
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.
2022-07-07 02:49:27 +00:00

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