diff options
| author | Ruediger Meier <ruediger.meier@ga-group.nl> | 2016-02-27 13:28:04 +0100 |
|---|---|---|
| committer | Ruediger Meier <ruediger.meier@ga-group.nl> | 2016-02-29 13:05:18 +0100 |
| commit | 4d751c008e7c893c30eb7c9b04b21756ca806b67 (patch) | |
| tree | 8846e5af43e5252f8b60c4c90b5ce7d174ed4d13 /include/fileutils.h | |
| parent | ee20c303ac4336b561b0bdca41123e48fdf44c80 (diff) | |
| download | util-linux-4d751c008e7c893c30eb7c9b04b21756ca806b67.tar.gz | |
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 ba8da7fe60..79dd012377 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) |
