From 3e4c973b03d96de8d4b23eedfe1d68348b41bb5c Mon Sep 17 00:00:00 2001 From: Guido Serassio Date: Sun, 13 Jul 2008 14:24:35 +0200 Subject: [PATCH] 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. --- helpers/external_acl/mswin_ad_group/config.test | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 2.47.2