]> granicus.if.org Git - php/commitdiff
only used if HAVE_NOFOLLOW
authorPierre Joye <pierre.php@gmail.com>
Sat, 17 May 2014 03:50:01 +0000 (05:50 +0200)
committerPierre Joye <pierre.php@gmail.com>
Sat, 17 May 2014 03:50:01 +0000 (05:50 +0200)
ext/session/mod_files.c

index dd9361b34e549569db239fcb0d5c54e675b09aeb..2c2b0fa555aa56112fcc0152f4d91b5171d6846c 100644 (file)
@@ -121,7 +121,9 @@ static void ps_files_close(ps_files *data)
 static void ps_files_open(ps_files *data, const char *key TSRMLS_DC)
 {
        char buf[MAXPATHLEN];
+#ifdef O_NOFOLLOW
     struct stat sbuf;
+#endif
 
        if (data->fd < 0 || !data->lastkey || strcmp(key, data->lastkey)) {
                if (data->lastkey) {