X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;fp=php_http_api.h;h=091fd6590f8243fd0fe6d70c800f3a986c9c7b1f;hp=9e0dc6ca69bc39fa7eb80263fbf78a24f56a378a;hb=6076d966844330e8bb12a7c19a57242ca3c0a9a8;hpb=371a7daee8ef02195769ebf846e0f5ca93093672 diff --git a/php_http_api.h b/php_http_api.h index 9e0dc6c..091fd65 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -58,17 +58,14 @@ typedef int STATUS; #ifdef PHP_WIN32 # define CURL_STATICLIB -# define PHP_HTTP_HAVE_NETDB # include -#elif defined(HAVE_NETDB_H) -# define PHP_HTTP_HAVE_NETDB -# include +#else +# ifdef HAVE_NETDB_H +# include +# endif # ifdef HAVE_UNISTD_H # include # endif -# ifdef HAVE_ERRNO_H -# include -# endif #endif #include