]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: Fix mswin_check_ad_group build error on MinGW and Cygwin
authorGuido Serassio <serassio@squid-cache.org>
Sun, 13 Jul 2008 12:20:42 +0000 (14:20 +0200)
committerGuido Serassio <serassio@squid-cache.org>
Sun, 13 Jul 2008 12:20:42 +0000 (14:20 +0200)
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.

helpers/external_acl/mswin_ad_group/config.test

index 55ae739fbe42c939240b83a3c30934ebbe538b8e..aa0616759a99f861e6ff6ac6b2abe7102d68ff9e 100755 (executable)
@@ -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