summaryrefslogtreecommitdiff
path: root/Build/source/texk/dviljk/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dviljk/config.h')
-rw-r--r--Build/source/texk/dviljk/config.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/dviljk/config.h b/Build/source/texk/dviljk/config.h
index d792a5a11b6..bfbe22fbf51 100644
--- a/Build/source/texk/dviljk/config.h
+++ b/Build/source/texk/dviljk/config.h
@@ -448,11 +448,11 @@ typedef FILE *FILEPTR;
#define unlink(file)
#endif
-/* If mkdtemp() does not exist, we have to use tmpnam(). */
+/* If mkdtemp() does not exist, we have to use mktemp() or tmpnam()
+ and mkdir(). For the latter, we need the declaration. */
#ifndef HAVE_MKDTEMP
-#define mkdtemp(dir) (tmpnam(dir) ? \
- ( mkdir(dir, 0700) == -1 ? NULL : dir ) : \
- ( errno = EINVAL, NULL ) )
+#include <sys/types.h>
+#include <sys/stat.h>
#endif
#ifndef KPATHSEA