]> granicus.if.org Git - php/commitdiff
MFH
authorfoobar <sniper@php.net>
Fri, 25 Apr 2003 18:11:42 +0000 (18:11 +0000)
committerfoobar <sniper@php.net>
Fri, 25 Apr 2003 18:11:42 +0000 (18:11 +0000)
main/php_open_temporary_file.c

index 59cde21421c54242338184a72d3fd60789eb6940..b364eb6a6a65034ad09ca157abacfe25a646156a 100644 (file)
@@ -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