aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorMosder <git@mosder.eu>2026-10-13 14:48:48 +0200
committerMosder <git@mosder.eu>2026-10-13 14:48:48 +0200
commit2b01cab2df7273dad7f95c4349929a28331338c2 (patch)
treea3dd962dce355f5886644b16885cde59a260de40 /compat
parent634f254d282f119de7eeef22325045bffb5b1cf1 (diff)
refactor: removed the use of mkstemp and replaced it with tmpfile + fileno -> have tp handle that somehow, maybe freopen or something?
Diffstat (limited to 'compat')
-rw-r--r--compat/compat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/compat.h b/compat/compat.h
index 0279eda..314ffcf 100644
--- a/compat/compat.h
+++ b/compat/compat.h
@@ -27,10 +27,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
+#ifndef NO_FILENO
+#define mos_fileno fileno
#else
-#error mkstemp fallback not implemented
+#error fileno fallback not implemented
#endif // NO_MEMMEM
#endif // MOSLIB_COMPAT_H