summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in1
-rw-r--r--main/php.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 0be23e80a0..8fc58b8a37 100644
--- a/configure.in
+++ b/configure.in
@@ -333,6 +333,7 @@ unsetenv \
usleep \
utime \
vsnprintf \
+mkstemp \
)
AC_REPLACE_FUNCS(strlcat strlcpy)
diff --git a/main/php.h b/main/php.h
index 104983efb4..a778c5dff6 100644
--- a/main/php.h
+++ b/main/php.h
@@ -168,6 +168,10 @@ typedef zval pval;
extern char *strerror(int);
#endif
+#ifdef HAVE_MKSTEMP
+# define mktemp mkstemp
+#endif
+
#include "fopen-wrappers.h"
#if APACHE /* apache httpd */