From 419f5464df8b806105879841b1502f5a27e87fcb Mon Sep 17 00:00:00 2001
From: Howard Chu <hyc@openldap.org>
Date: Thu, 15 Jan 2004 07:08:06 +0000
Subject: [PATCH] ITS#2918 additional fix for -lrpcrt4 detection

---
 configure    | 10 +++++-----
 configure.in |  8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/configure b/configure
index f875f7245a..b3b6e3ad46 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # $OpenLDAP$
-# from OpenLDAP: pkg/ldap/configure.in,v 1.508 2004/01/01 18:15:21 kurt Exp  
+# from OpenLDAP: pkg/ldap/configure.in,v 1.509 2004/01/15 03:21:20 hyc Exp  
 
 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
 #
@@ -9923,13 +9923,13 @@ echo "configure:9920: checking to see if -lrpcrt4 is needed for win32 UUID suppo
 #line 9924 "configure"
 #include "confdefs.h"
 
-		char UuidCreate@4();
-		char UuidToStringA@8();
+		int __stdcall UuidCreate(void *);
+		int __stdcall UuidToStringA(void *,void **);
 		
 int main() {
 
-		UuidCreate@4();
-		UuidToStringA@8();
+		UuidCreate(0);
+		UuidToStringA(0,0);
 		
 ; return 0; }
 EOF
diff --git a/configure.in b/configure.in
index bf41ae00ba..20a429ad17 100644
--- a/configure.in
+++ b/configure.in
@@ -1006,12 +1006,12 @@ if test $have_uuid = no ; then
 	save_LIBS="$LIBS"
 	LIBS="$LIBS -lrpcrt4"
 	AC_TRY_LINK([
-		char UuidCreate@4();
-		char UuidToStringA@8();
+		int __stdcall UuidCreate(void *);
+		int __stdcall UuidToStringA(void *,void **);
 		],
 		[
-		UuidCreate@4();
-		UuidToStringA@8();
+		UuidCreate(0);
+		UuidToStringA(0,0);
 		],
 		need_rpcrt=yes, need_rpcrt=no)
 	if test $need_rpcrt = yes; then
-- 
GitLab