summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/xxhash/Makefile2
-rw-r--r--devel/xxhash/files/patch-xxhash.h12
2 files changed, 13 insertions, 1 deletions
diff --git a/devel/xxhash/Makefile b/devel/xxhash/Makefile
index aa971e1fd084..988561039bf0 100644
--- a/devel/xxhash/Makefile
+++ b/devel/xxhash/Makefile
@@ -1,6 +1,6 @@
PORTNAME= xxhash
PORTVERSION= 0.8.1
-PORTREVISION= 1
+PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= devel
diff --git a/devel/xxhash/files/patch-xxhash.h b/devel/xxhash/files/patch-xxhash.h
new file mode 100644
index 000000000000..d005011ddc4f
--- /dev/null
+++ b/devel/xxhash/files/patch-xxhash.h
@@ -0,0 +1,12 @@
+--- xxhash.h.orig 2022-08-13 18:58:45.930785000 +0200
++++ xxhash.h 2022-08-13 18:59:08.416809000 +0200
+@@ -1546,8 +1546,7 @@
+ /* note: use after variable declarations */
+ #ifndef XXH_STATIC_ASSERT
+ # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
+-# include <assert.h>
+-# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)
++# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { _Static_assert((c),m); } while(0)
+ # elif defined(__cplusplus) && (__cplusplus >= 201103L) /* C++11 */
+ # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)
+ # else