ports/devel/libqsbr/files/patch-qsbr.h
Robert Clausecker f4fd4422b1 devel/libqsbr: fix build on 32 bit platforms
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
2023-10-27 02:33:00 -04:00

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