[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] blktap2: Check gcrypt library has MD5() function.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1255074943 -3600
# Node ID 2a67c7e64582170223decb408bbf54eca65d47e7
# Parent  0f43f39ce6a9c6d3a3a0a35fbd53142efd775a23
blktap2: Check gcrypt library has MD5() function.

From: Dulloor <dulloor@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/blktap2/drivers/check_gcrypt |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

diff -r 0f43f39ce6a9 -r 2a67c7e64582 tools/blktap2/drivers/check_gcrypt
--- a/tools/blktap2/drivers/check_gcrypt        Fri Oct 09 08:54:25 2009 +0100
+++ b/tools/blktap2/drivers/check_gcrypt        Fri Oct 09 08:55:43 2009 +0100
@@ -2,7 +2,12 @@
 
 cat > .gcrypt.c << EOF
 #include <gcrypt.h>
-int main(void) { return 0; }
+int main(void) 
+{
+    char dummy[14];
+    MD5("DUMMY", 5, dummy);
+    return 0; 
+}
 EOF
 
 if $1 -o .gcrypt .gcrypt.c -lgcrypt 2>/dev/null ; then

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.