aboutsummaryrefslogtreecommitdiff
path: root/src/safe.c
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 /src/safe.c
parent7a1f842b91af4f916501eaea991b897e3db4c502 (diff)
added a temporary fix for glibc
Diffstat (limited to 'src/safe.c')
-rw-r--r--src/safe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/safe.c b/src/safe.c
index 0701939..de49a58 100644
--- a/src/safe.c
+++ b/src/safe.c
@@ -1,3 +1,5 @@
+#include "compat.h"
+
#define MOS_FORCE_PREFIXES
#include "moslib/safe.h"
@@ -90,7 +92,7 @@ int mos_safe_pipe_fn(int fd[2], MosSafeErrInfo info) {
}
int mos_safe_mkstemp_fn(char *path, MosSafeErrInfo info) {
- int fd = mkstemp(path);
+ int fd = mos_mkstemp(path);
if (fd != -1)
return fd;
ERR_MESS("failed to make temporary file");