-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: rmind/libqsbr#12 Approved by: portmgr (build fix blanket) MFH: 2023Q4
- Loading branch information
1 parent
148a825
commit f4fd442
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- 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 | ||
|