summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/php_open_temporary_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c
index 27277358b2..41f2560c14 100644
--- a/main/php_open_temporary_file.c
+++ b/main/php_open_temporary_file.c
@@ -105,11 +105,13 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, char **
char *trailing_slash;
char *opened_path;
int fd = -1;
+#ifndef HAVE_MKSTEMP
int open_flags = O_CREAT | O_TRUNC | O_RDWR
#ifdef PHP_WIN32
| _O_BINARY
#endif
;
+#endif
#ifdef NETWARE
char *file_path = NULL;
#endif