Files
macports-ports/security/md5deep/files/patch-src-hash.cpp.diff
Ryan Schmidt 6b40ed4b20 md5deep: Install new config.guess/config.sub files
Closes: https://trac.macports.org/ticket/64160

While we're here, add revision line, add size to checksums, silence the
warning about the intentional implicit function declaration, use leading
0 for octal values, and add comment to patchfile showing the upstream
commit it was taken from.
2021-12-09 00:15:15 -06:00

13 lines
431 B
Diff

https://github.com/jessek/hashdeep/commit/6ef69a26126ee4e69a25392fd456b8a66c51dffd
--- src/hash.cpp.orig 2015-04-01 02:12:52.000000000 +0200
+++ src/hash.cpp 2017-10-07 16:05:39.000000000 +0200
@@ -279,7 +279,7 @@
MAP_FILE|
#endif
MAP_SHARED,fd,0);
- if(fdht->base>0){
+ if(fdht->base != (void *) -1){
/* mmap is successful, so set the bounds.
* if it is not successful, we default to reading the fd
*/