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

index 27277358b2522d2a76eebb684a0627d88e0a1811..41f2560c14fde2c270019cab5f6d7a8f371c6b72 100644 (file)
@@ -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