ports/devel/doxygen/files/patch-md5-dirdef
Dima Panov b8ac15afd0 devel/doxygen: update to 1.9.1 release
Also regen 'pkg-plist' for affected consumers, with PORTREVISION bump
Touch Mk/bsd.ruby.mk due to all ruby* is affected
MFH:	2021Q2
2021-04-18 20:02:20 +10:00

28 lines
823 B
Text

--- src/dirdef.cpp.orig 2020-11-27 20:27:34 UTC
+++ src/dirdef.cpp
@@ -11,11 +11,13 @@
* Documents produced by Doxygen are derivative works derived from the
* input used in their production; they are not affected by this license.
*
+#include <sys/types.h>
*/
#include <algorithm>
#include "dirdef.h"
+#include <sys/types.h>
#include "md5.h"
#include "filename.h"
#include "doxygen.h"
@@ -180,10 +182,8 @@ void DirDefImpl::sort()
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