diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-03 09:56:22 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-03 10:07:14 +0100 |
commit | 2737be8914270275d07ccf4526a4ba8b781c195e (patch) | |
tree | f316b4db84478e77fc6ed8f612a95af39dc0eba9 /common/compat.h | |
parent | 193f0043a546e0ef186addb2a0487d09e690d5b1 (diff) | |
download | p11-kit-2737be8914270275d07ccf4526a4ba8b781c195e.tar.gz |
Add compat mkstemp() and mkdtemp() functions
Not available on Win32 or ancient unixes
Diffstat (limited to 'common/compat.h')
-rw-r--r-- | common/compat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/compat.h b/common/compat.h index cb4d2ad..0299cd3 100644 --- a/common/compat.h +++ b/common/compat.h @@ -74,6 +74,18 @@ char * basename (const char *name); #endif /* HAVE_BASENAME */ +#ifndef HAVE_MKSTEMP + +int mkstemp (char *template); + +#endif /* HAVE_MKSTEMP */ + +#ifndef HAVE_MKDTEMP + +char * mkdtemp (char *template); + +#endif /* HAVE_MKDTEMP */ + /* ----------------------------------------------------------------------------- * WIN32 */ |