--- src/dirdef.cpp.orig	2015-01-03 22:38:57 UTC
+++ src/dirdef.cpp
@@ -1,3 +1,4 @@
+#include <sys/types.h>
 #include "md5.h"
 
 #include "dirdef.h"
@@ -81,10 +82,8 @@ void DirDef::addFile(FileDef *fd)
 static QCString encodeDirName(const QCString &anchor)
 {
   // convert to md5 hash
-  uchar md5_sig[16];
   QCString sigStr(33);
-  MD5Buffer((const unsigned char *)anchor.data(),anchor.length(),md5_sig);
-  MD5SigToString(md5_sig,sigStr.rawData(),33);
+  MD5Data((const unsigned char *)anchor.data(),anchor.length(),sigStr.rawData());
   return sigStr;
 
   // old algorithm
