]> granicus.if.org Git - php/commitdiff
add missing condition
authorAnatol Belski <ab@php.net>
Thu, 5 Jan 2017 22:16:09 +0000 (23:16 +0100)
committerAnatol Belski <ab@php.net>
Thu, 5 Jan 2017 22:16:09 +0000 (23:16 +0100)
ext/fileinfo/libmagic/compress.c

index 07bb6ffab5707cb01a274f247c7d9bb68c41652b..a31f632a4af44a5bcedcc2a73e2348aaa9abbdaf 100644 (file)
@@ -60,7 +60,7 @@ typedef void (*sig_t)(int);
 #if defined(HAVE_SYS_TIME_H)
 #include <sys/time.h>
 #endif
-#if defined(HAVE_ZLIB_H)
+#if defined(HAVE_ZLIB_H) && defined(PHP_FILEINFO_UNCOMPRESS)
 #define BUILTIN_DECOMPRESS
 #include <zlib.h>
 #endif