diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 00:12:44 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 00:12:44 -0400 |
| commit | 80755477735baaea66f865c316aff036bebd8e2f (patch) | |
| tree | ef11a3a91f4106c8f19a21af0215c27a61afc991 /lib | |
| parent | b1d2120d5d20c0122cc0a61f2ca09f0bc754d14d (diff) | |
Clean up some unistr.h issues and expand some parse macros.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/commands/commands.c | 12 |
1 files changed, 11 insertions, 1 deletions
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 <sys/param.h> #include <sys/wait.h> #include <unistd.h> -#include <unistr.h> + +// This is a workaround fix for an issue on some systems that don't have `__GLIBC__` defined +// and run into problems with <unistr.h> + +#ifndef __GLIBC__ +#define __GLIBC__ 2 +#include <unistr.h> // IWYU pragma: export +#undef __GLIBC__ +#else +#include <unistr.h> // IWYU pragma: export +#endif #define READ_END 0 #define WRITE_END 1 |
