diff --git a/CHANGELOG.md b/CHANGELOG.md index bde10a435e..db6c4b048b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -84,6 +84,7 @@ Bugfixes: * Fixed `{#keys}` and `{#title}` in module format strings not honoring the `brightColor` display option. (Format) * Fixed `paddingTop` and `paddingLeft` being ignored by the `kitty-icat` image logo type. (Logo) * Fixed issues when running on big-endian platforms. +* Fixed building on FreeBSD 16.0-CURRENT, where `` defines `memrchr` as a qualifier-preserving function-like macro. (General, FreeBSD) * Some internal cleanups and optimizations. Logos: diff --git a/src/common/memrchr.h b/src/common/memrchr.h index 6905a33176..9d4ef24aa0 100644 --- a/src/common/memrchr.h +++ b/src/common/memrchr.h @@ -8,7 +8,9 @@ extern "C" { // `memrchr` is a GNU extension and may not be declared by system headers even when the symbol exists. // Declare it unconditionally; the build system provides a fallback implementation when missing. +#ifndef memrchr void* memrchr(const void* s, int c, size_t n); +#endif #ifdef __cplusplus }