From: Amos Jeffries Date: Sun, 23 Mar 2014 04:44:40 +0000 (+1200) Subject: Portability: basic_nis_auth depends on rpcsvc/ypclnt.h X-Git-Tag: SQUID_3_5_0_1~324 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=786b7fa9a26f0c9e0d62ddeb7cd33f44b5ece29e;p=thirdparty%2Fsquid.git Portability: basic_nis_auth depends on rpcsvc/ypclnt.h ... which is not availabel on all platforms (such as MinGW on Windows). --- diff --git a/helpers/basic_auth/NIS/nis_support.cc b/helpers/basic_auth/NIS/nis_support.cc index 133b043dae..de46c03ed6 100644 --- a/helpers/basic_auth/NIS/nis_support.cc +++ b/helpers/basic_auth/NIS/nis_support.cc @@ -20,8 +20,9 @@ #define BOOL_DEFINED #endif +#if HAVE_RPCSVC_YPCLNT_H #include - +#endif #if HAVE_RPCSVC_YP_PROT_H #include #endif diff --git a/helpers/basic_auth/NIS/required.m4 b/helpers/basic_auth/NIS/required.m4 index 64d3429af6..20215c3fd4 100755 --- a/helpers/basic_auth/NIS/required.m4 +++ b/helpers/basic_auth/NIS/required.m4 @@ -1,4 +1,4 @@ -AC_CHECK_HEADERS([sys/types.h rpc/rpc.h rpcsvc/yp_prot.h crypt.h],[BUILD_HELPER="NIS"],,AC_INCLUDES_DEFAULT([ +AC_CHECK_HEADERS([sys/types.h rpc/rpc.h rpcsvc/ypclnt.h rpcsvc/yp_prot.h crypt.h],[BUILD_HELPER="NIS"],,AC_INCLUDES_DEFAULT([ #if HAVE_RPC_RPC_H #include #endif