FreeBSD Bugzilla – Attachment 232919 Details for
Bug 262977
Preprocessor error in sys/contrib/zlib/crc32.c on arm64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0002-sys-contrib-zlib-Always-define-Z_U8-and-Z_U4.patch (text/plain), 861 bytes, created by
Xin LI
on 2022-04-03 19:03:18 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Xin LI
Created:
2022-04-03 19:03:18 UTC
Size:
861 bytes
patch
obsolete
>From 500af8c9e1c38a4610396cba80ed7673f0d96743 Mon Sep 17 00:00:00 2001 >From: Xin LI <delphij@FreeBSD.org> >Date: Sun, 3 Apr 2022 11:45:38 -0700 >Subject: [PATCH 2/2] sys/contrib/zlib: Always define Z_U8 and Z_U4 > >This is a temporary hack for zlib to make sure that the library >still builds when building with Z_SOLO (used in kernel and loader), >as zlib is depending on limits.h which is only available in STDC >case. > >PR: kern/262977 >--- > sys/contrib/zlib/zconf.h | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/sys/contrib/zlib/zconf.h b/sys/contrib/zlib/zconf.h >index 3536a8c263f8..283c77f93e65 100644 >--- a/sys/contrib/zlib/zconf.h >+++ b/sys/contrib/zlib/zconf.h >@@ -12,6 +12,11 @@ > #ifdef _KERNEL > #define Z_SOLO > #endif >+#if defined(Z_SOLO) >+#include <sys/types.h> >+#define Z_U8 __uint64_t >+#define Z_U4 __uint32_t >+#endif > #endif > > /* >-- >2.35.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 262977
:
232867
|
232914
|
232915
| 232919