From 4dfbb97a69ff7a371bc43dfe4d8b7c576dbcd7b3 Mon Sep 17 00:00:00 2001 From: auronandace Date: Wed, 29 Apr 2026 09:57:11 +0100 Subject: [PATCH] import strings header in string for mesa --- src/header/string/cbindgen.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/header/string/cbindgen.toml b/src/header/string/cbindgen.toml index f928e7282f..f5b8a9ad9a 100644 --- a/src/header/string/cbindgen.toml +++ b/src/header/string/cbindgen.toml @@ -8,6 +8,11 @@ sys_includes = ["stddef.h"] include_guard = "_RELIBC_STRING_H" after_includes = """ #include // for locale_t from locale.h + +// POSIX doesn't require importing strings.h but mesa needs it +#if defined(_BSD_SOURCE) || defined(_GNU_SOURCE) +#include +#endif """ language = "C" style = "Tag"