aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/zstd
diff options
context:
space:
mode:
authorMinsoo Choo <minsoochoo0122@proton.me>2025-01-09 18:28:12 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2025-01-09 19:00:54 +0000
commitc6eb7f3fbffd9065ab75a2ed266f1b069fd97e6e (patch)
treec9af64f52fd71f422d8106e388b0b6d41c590832 /sys/contrib/zstd
parentd0d7fcbae4207402b35f37cabe2bb5f30bec7c5d (diff)
zstd: Add a stub <assert.h> for the kernel
The stub header includes <sys/kassert.h>. zstd's xx_hash.h #includes <assert.h> for the definition of static_assert() when building with C11 or newer. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D43239
Diffstat (limited to 'sys/contrib/zstd')
-rw-r--r--sys/contrib/zstd/lib/freebsd/assert.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/contrib/zstd/lib/freebsd/assert.h b/sys/contrib/zstd/lib/freebsd/assert.h
new file mode 100644
index 000000000000..eb2efe9be6c0
--- /dev/null
+++ b/sys/contrib/zstd/lib/freebsd/assert.h
@@ -0,0 +1,2 @@
+/* This file is in the public domain */
+#include <sys/kassert.h>