Skip to contentSkip to conversation

[PATCH xen tools check_gcrypt]

PATCH New Dulloor 1 participant 1 message Oct 8, 2009

lore
Share & tools
lore

Dulloor

author
#0 lore raw

PATCH 1/1 [PATCH xen tools check_gcrypt]

On ubuntu, MD5 function isn't defined in libgcrypt. Causes compilation error in xen-tools.

-dulloor

tools/blktap2/drivers/check_gcrypt +6 -1
diff -r 1d7221667204 tools/blktap2/drivers/check_gcrypt
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel