chiark / gitweb /
actually build summer
[chiark-utils.git] / cprogs / summer.c
index 4f42e608a7774f3636c173690bd0641b8b3e0345..ca65fc684279ddfd08402a49e1f54bd9e195fe12 100644 (file)
@@ -17,8 +17,9 @@
 #include <stdarg.h>
 #include <limits.h>
 #include <assert.h>
+#include <stdlib.h>
 
-#include "md5.h"
+#include "nettle/md5-compat.h"
 
 #define MAXFN 2048
 #define MAXDEPTH 1024
@@ -79,7 +80,7 @@ static void problem(const char *path, int padto, const char *fmt, ...) {
 
 static void csum_file(const char *path) {
   FILE *f;
-  struct MD5Context mc;
+  MD5_CTX mc;
   char db[65536];
   unsigned char digest[16];
   size_t r;