X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=091fd6590f8243fd0fe6d70c800f3a986c9c7b1f;hp=9e0dc6ca69bc39fa7eb80263fbf78a24f56a378a;hb=2b065af121eb367bd3fe7e5ad3c673d342438d34;hpb=eaa046dc3e6496e523a17c3b786ef27067b9795c 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