aboutsummaryrefslogtreecommitdiff
path: root/compat/compat.h
diff options
context:
space:
mode:
authorMosder <git@mosder.eu>2026-10-06 17:25:17 +0200
committerMosder <git@mosder.eu>2026-10-06 17:25:17 +0200
commit4513d3c2733e63659320a0b4e23af9bdb72440b6 (patch)
treeb8e94e95f303ef8b090621d50f4c05fc76b51ef9 /compat/compat.h
parent7a1f842b91af4f916501eaea991b897e3db4c502 (diff)
added a temporary fix for glibc
Diffstat (limited to 'compat/compat.h')
-rw-r--r--compat/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/compat.h b/compat/compat.h
index 5f9424d..8a7ef4a 100644
--- a/compat/compat.h
+++ b/compat/compat.h
@@ -22,4 +22,10 @@ extern char *mos_strdup(const char *s);
extern void *mos_memmem(const void *h, size_t h_size, const void *n, size_t n_size);
#endif // NO_MEMMEM
+#ifndef NO_MKSTEMP
+#define mos_mkstemp mkstemp
+#else
+#error mkstemp fallback not implemented
+#endif // NO_MEMMEM
+
#endif // MOSLIB_COMPAT_H