From 4d751c008e7c893c30eb7c9b04b21756ca806b67 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Sat, 27 Feb 2016 13:28:04 +0100 Subject: lib: provide fallback if mkostemp(3) missing It's missing on OSX. CC: Yuriy M. Kaminskiy Signed-off-by: Ruediger Meier --- include/fileutils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/fileutils.h') diff --git a/include/fileutils.h b/include/fileutils.h index ba8da7fe6..79dd01237 100644 --- a/include/fileutils.h +++ b/include/fileutils.h @@ -8,6 +8,8 @@ #include "c.h" +extern int mkstemp_cloexec(char *template); + extern int xmkstemp(char **tmpname, const char *dir, const char *prefix); static inline FILE *xfmkstemp(char **tmpname, const char *dir, const char *prefix) -- cgit v1.2.3-55-g7522