mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 10:36:38 -04:00
The fix is to make qsbr_epoch_t a 64 bit integer in any case. The fix is carefully designed not to change the API on platforms where it is so already. Unfortunately this fix requires FreeBSD 13 or newer due to the old LLVM version included in FreeBSD 12. While we are at it, hook up test target. See also: https://github.com/rmind/libqsbr/issues/12 Approved by: portmgr (build fix blanket) MFH: 2023Q4
14 lines
278 B
C
14 lines
278 B
C
--- qsbr.h.orig 2023-10-25 22:40:12 UTC
|
|
+++ qsbr.h
|
|
@@ -13,7 +13,11 @@
|
|
|
|
struct qsbr;
|
|
typedef struct qsbr qsbr_t;
|
|
+#if defined(__LONG_WIDTH__) && __LONG_WIDTH < 64
|
|
+typedef unsigned long long qsbr_epoch_t;
|
|
+#else
|
|
typedef unsigned long qsbr_epoch_t;
|
|
+#endif
|
|
|
|
__BEGIN_DECLS
|
|
|