git: c328cf48f848 - main - textproc/sonic: Fix build on current with _WITH_CPU_SET_T

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Fri, 03 Dec 2021 12:07:48 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c328cf48f848906c55efe9f755ffb0c006074a33

commit c328cf48f848906c55efe9f755ffb0c006074a33
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2021-12-03 11:36:16 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2021-12-03 12:07:44 +0000

    textproc/sonic: Fix build on current with _WITH_CPU_SET_T
---
 ...oc_include_jemalloc_internal_jemalloc__internal__decls.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/textproc/sonic/files/patch-cargo-crates_jemalloc-sys-0.3.2_jemalloc_include_jemalloc_internal_jemalloc__internal__decls.h b/textproc/sonic/files/patch-cargo-crates_jemalloc-sys-0.3.2_jemalloc_include_jemalloc_internal_jemalloc__internal__decls.h
new file mode 100644
index 000000000000..740df6b84137
--- /dev/null
+++ b/textproc/sonic/files/patch-cargo-crates_jemalloc-sys-0.3.2_jemalloc_include_jemalloc_internal_jemalloc__internal__decls.h
@@ -0,0 +1,13 @@
+--- cargo-crates/jemalloc-sys-0.3.2/jemalloc/include/jemalloc/internal/jemalloc_internal_decls.h.orig	2018-12-12 14:11:23 UTC
++++ cargo-crates/jemalloc-sys-0.3.2/jemalloc/include/jemalloc/internal/jemalloc_internal_decls.h
+@@ -1,5 +1,10 @@
+ #ifndef JEMALLOC_INTERNAL_DECLS_H
+ #define JEMALLOC_INTERNAL_DECLS_H
++#include <sys/param.h>
++#if __FreeBSD_version >= 1400042
++#define _WITH_CPU_SET_T
++# include <sched.h>
++#endif
+ 
+ #include <math.h>
+ #ifdef _WIN32