mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
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.
13 lines
431 B
Diff
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
|
|
*/
|