From: foobar Date: Fri, 25 Apr 2003 18:11:42 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.2RC2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fe880b86718b28f07b930cc777a135432d95ee0;p=php MFH --- diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index 59cde21421..b364eb6a6a 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -107,11 +107,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