From 80755477735baaea66f865c316aff036bebd8e2f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 25 Aug 2025 00:12:44 -0400 Subject: Clean up some unistr.h issues and expand some parse macros. --- lib/commands/commands.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib/commands') diff --git a/lib/commands/commands.c b/lib/commands/commands.c index 4a6272b9..41f5b7ef 100644 --- a/lib/commands/commands.c +++ b/lib/commands/commands.c @@ -12,7 +12,17 @@ #include #include #include -#include + +// This is a workaround fix for an issue on some systems that don't have `__GLIBC__` defined +// and run into problems with + +#ifndef __GLIBC__ +#define __GLIBC__ 2 +#include // IWYU pragma: export +#undef __GLIBC__ +#else +#include // IWYU pragma: export +#endif #define READ_END 0 #define WRITE_END 1 -- cgit v1.2.3