diff options
| author | Robert Clausecker <fuz@FreeBSD.org> | 2025-11-27 21:59:12 +0000 |
|---|---|---|
| committer | Robert Clausecker <fuz@FreeBSD.org> | 2025-11-28 15:55:05 +0000 |
| commit | 04d000a378b04bca1aff4a1cc3d74f5c9c5368b9 (patch) | |
| tree | 0e1dba43f5a4e40d764646a85a7627f3111130b9 | |
| parent | f0e541118c374869a8226eaa1320bb6eda248a20 (diff) | |
jemalloc: avoid clash with C23 unreachable() macro
Summary: This avoids a clash with the new macro in <stddef.h>
introduced in D53967
Reviewed by: imp
Approved by: markj (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D53968
| -rw-r--r-- | contrib/jemalloc/include/jemalloc/internal/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/jemalloc/include/jemalloc/internal/util.h b/contrib/jemalloc/include/jemalloc/internal/util.h index dcb1c0a5d62b..da84b09d0132 100644 --- a/contrib/jemalloc/include/jemalloc/internal/util.h +++ b/contrib/jemalloc/include/jemalloc/internal/util.h @@ -40,6 +40,9 @@ # error JEMALLOC_INTERNAL_UNREACHABLE should have been defined by configure #endif +#ifdef unreachable +# undef unreachable +#endif #define unreachable() JEMALLOC_INTERNAL_UNREACHABLE() /* Set error code. */ |
