summaryrefslogtreecommitdiffstats
path: root/src/bfstd.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-10 22:22:01 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-10 22:22:01 -0500
commit640fa83406bb8c08d971be68b32b7e222e92e286 (patch)
treed6151f9dea6ffd02f68acca03a2696b0dd5bc712 /src/bfstd.c
parente44e07a6bff0dd21a3fb08f28cd161e03360328b (diff)
downloadbfs-640fa83406bb8c08d971be68b32b7e222e92e286.tar.xz
Initial support for Cosmopolitan Libc
Diffstat (limited to 'src/bfstd.c')
-rw-r--r--src/bfstd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bfstd.c b/src/bfstd.c
index 985a268..16cd82e 100644
--- a/src/bfstd.c
+++ b/src/bfstd.c
@@ -284,7 +284,7 @@ const char *xstrerror(int errnum) {
const char *ret = NULL;
static thread_local char buf[256];
-#if __APPLE__
+#if __APPLE__ || __COSMOPOLITAN__
// No strerror_l() on macOS
if (strerror_r(errnum, buf, sizeof(buf)) == 0) {
ret = buf;