diff options
author | Ruediger Meier | 2016-02-27 13:28:04 +0100 |
---|---|---|
committer | Ruediger Meier | 2016-02-29 13:05:18 +0100 |
commit | 4d751c008e7c893c30eb7c9b04b21756ca806b67 (patch) | |
tree | 8846e5af43e5252f8b60c4c90b5ce7d174ed4d13 /include/fileutils.h | |
parent | build-sys: chrt requires a sched_set* function (diff) | |
download | kernel-qcow2-util-linux-4d751c008e7c893c30eb7c9b04b21756ca806b67.tar.gz kernel-qcow2-util-linux-4d751c008e7c893c30eb7c9b04b21756ca806b67.tar.xz kernel-qcow2-util-linux-4d751c008e7c893c30eb7c9b04b21756ca806b67.zip |
lib: provide fallback if mkostemp(3) missing
It's missing on OSX.
CC: Yuriy M. Kaminskiy <yumkam@gmail.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'include/fileutils.h')
-rw-r--r-- | include/fileutils.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) |