apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Mark Vandenberg <jay...@gmail.com>
Subject [patch 17/17] Uuid
Date Sat, 15 Apr 2006 01:41:35 GMT
Include librpcrt4.a.

Include <windows.h> & <wincrypt.h> first.  Without this, the symbols
used from librpcrt4.a dont include the @<arg count>, causing the link
to fail.

Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -1916,6 +1916,8 @@ echo "${nl}Checking for OS UUID Support.
 
 AC_CHECK_HEADERS(uuid.h uuid/uuid.h sys/uuid.h, break)
 
+AX_CHECK_DLL_FUNC(rpcrt4,UuidCreate@4)
+
 apr_revert_save_LIBS=$LIBS
 
 # Prefer the flavor(s) that live in libc;
Index: misc/win32/rand.c
===================================================================
--- misc/win32/rand.c.orig
+++ misc/win32/rand.c
@@ -14,12 +14,13 @@
  * limitations under the License.
  */
 
+#include <windows.h>
+#include <wincrypt.h>
 #include "apr.h"
 #include "apr_private.h"
 #include "apr_general.h"
 #include "apr_portable.h"
 #include "apr_arch_misc.h"
-#include <wincrypt.h>
 
 
 APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char * buf,

--

Mime
View raw message