git: c6eb7f3fbffd - main - zstd: Add a stub <assert.h> for the kernel

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 09 Jan 2025 19:01:08 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=c6eb7f3fbffd9065ab75a2ed266f1b069fd97e6e

commit c6eb7f3fbffd9065ab75a2ed266f1b069fd97e6e
Author:     Minsoo Choo <minsoochoo0122@proton.me>
AuthorDate: 2025-01-09 18:28:12 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-01-09 19:00:54 +0000

    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
---
 sys/contrib/zstd/lib/freebsd/assert.h | 2 ++
 1 file changed, 2 insertions(+)

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>