From: Guido Serassio Date: Sun, 13 Jul 2008 12:20:42 +0000 (+0200) Subject: Windows port: Fix mswin_check_ad_group build error on MinGW and Cygwin X-Git-Tag: SQUID_3_1_0_1~49^2~146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c95b0efdffa09bd4be60757630fdd833a922d46;p=thirdparty%2Fsquid.git Windows port: Fix mswin_check_ad_group build error on MinGW and Cygwin The w32api currently available on MinGW and Cygwin is not complete, and lacks the needed AD functions for mswin_check_ad_group. This add to config.test the check for the availability of the needed functions. --- diff --git a/helpers/external_acl/mswin_ad_group/config.test b/helpers/external_acl/mswin_ad_group/config.test index 55ae739fbe..aa0616759a 100755 --- a/helpers/external_acl/mswin_ad_group/config.test +++ b/helpers/external_acl/mswin_ad_group/config.test @@ -1,8 +1,12 @@ #!/bin/sh -if [ -f /usr/include/w32api/windows.h ]; then - exit 0 +if [ -f /usr/include/w32api/dsrole.h ]; then + if grep -q DsRoleGetPrimaryDomainInformation /usr/include/w32api/dsrole.h; then + exit 0 + fi fi -if [ -f /usr/include/windows.h ]; then - exit 0 +if [ -f /usr/include/dsrole.h ]; then + if grep -q DsRoleGetPrimaryDomainInformation /usr/include/dsrole.h; then + exit 0 + fi fi exit 1