From 93b51f4e26c5615b1218f8bc3c5d6a5ef2a94b18 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Tue, 12 May 2020 22:36:08 +0200 Subject: Fix [-Wundef] warning in cURL extension --- ext/curl/interface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/curl/interface.c') diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 12762cd7f4..dc79a9e2d7 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -22,7 +22,7 @@ #include "php.h" -#if HAVE_CURL +#ifdef HAVE_CURL #include #include @@ -1722,7 +1722,7 @@ static void _php_curl_set_default_options(php_curl *ch) curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); curl_easy_setopt(ch->cp, CURLOPT_HEADERFUNCTION, curl_write_header); curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); -#if !defined(ZTS) +#ifndef ZTS curl_easy_setopt(ch->cp, CURLOPT_DNS_USE_GLOBAL_CACHE, 1); #endif curl_easy_setopt(ch->cp, CURLOPT_DNS_CACHE_TIMEOUT, 120); @@ -1736,7 +1736,7 @@ static void _php_curl_set_default_options(php_curl *ch) curl_easy_setopt(ch->cp, CURLOPT_CAINFO, cainfo); } -#if defined(ZTS) +#ifdef ZTS curl_easy_setopt(ch->cp, CURLOPT_NOSIGNAL, 1); #endif } -- cgit v1.2.1