1 --- src/dirdef.cpp.orig	2022-12-18 12:21:42 UTC
2 +++ src/dirdef.cpp
3 @@ -14,6 +14,7 @@
4   */
5 
6  #include <algorithm>
7 +#include <sys/types.h>
8 
9  #include "dirdef.h"
10  #include "md5.h"
11 @@ -181,10 +182,8 @@ static QCString encodeDirName(const QCString &anchor)
12  static QCString encodeDirName(const QCString &anchor)
13  {
14    // convert to md5 hash
15 -  uchar md5_sig[16];
16 -  char sigStr[33];
17 -  MD5Buffer(anchor.data(),anchor.length(),md5_sig);
18 -  MD5SigToString(md5_sig,sigStr);
19 +  QCString sigStr(33);
20 +  MD5Data((const unsigned char *)anchor.data(),anchor.length(),sigStr.rawData());
21    return sigStr;
22 
23    // old algorithm
24