[monitoring-plugins] hotfix for bsearch and wmemchr for glibc 2.43
Andreas Baumann
git at monitoring-plugins.org
Sat Mar 14 08:30:13 CET 2026
Module: monitoring-plugins
Branch: check_snmp_fixes
Commit: 99283972fe3a74d3a1dea12c4099f76286130a67
Author: Andreas Baumann <mail at andreasbaumann.cc>
Date: Sat Mar 14 08:25:43 2026 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=99283972
hotfix for bsearch and wmemchr for glibc 2.43
---
gl/stdlib.in.h | 2 +-
gl/wchar.in.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gl/stdlib.in.h b/gl/stdlib.in.h
index 1342db48..95378503 100644
--- a/gl/stdlib.in.h
+++ b/gl/stdlib.in.h
@@ -237,7 +237,7 @@ _GL_INLINE_HEADER_BEGIN
/* Declarations for ISO C N3322. */
#if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
-_GL_EXTERN_C void *bsearch (const void *__key,
+_GL_EXTERN_C void *(bsearch) (const void *__key,
const void *__base, size_t __nmemb, size_t __size,
int (*__compare) (const void *, const void *))
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3) _GL_ARG_NONNULL ((5));
diff --git a/gl/wchar.in.h b/gl/wchar.in.h
index a6c52eb9..b4de3858 100644
--- a/gl/wchar.in.h
+++ b/gl/wchar.in.h
@@ -316,7 +316,7 @@ _GL_EXTERN_C int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (2, 3);
# ifndef __cplusplus
-_GL_EXTERN_C wchar_t *wmemchr (const wchar_t *__s, wchar_t __wc, size_t __n)
+_GL_EXTERN_C wchar_t *(wmemchr) (const wchar_t *__s, wchar_t __wc, size_t __n)
_GL_ATTRIBUTE_NONNULL_IF_NONZERO (1, 3);
# endif
_GL_EXTERN_C wchar_t *wmemset (wchar_t *__s, wchar_t __wc, size_t __n)
More information about the Commits
mailing list