diff options
author | nobutaka <nobutaka@FreeBSD.org> | 2017-06-11 21:39:17 +0800 |
---|---|---|
committer | nobutaka <nobutaka@FreeBSD.org> | 2017-06-11 21:39:17 +0800 |
commit | c60e78a4ac7fc923951ade086b3ca69f92c269fd (patch) | |
tree | 4b0d458907def20be2afffd37968b842a83fca11 /security | |
parent | 52df422024bbf21349321e32d6a023ab59eec693 (diff) | |
download | freebsd-ports-gnome-c60e78a4ac7fc923951ade086b3ca69f92c269fd.tar.gz freebsd-ports-gnome-c60e78a4ac7fc923951ade086b3ca69f92c269fd.tar.zst freebsd-ports-gnome-c60e78a4ac7fc923951ade086b3ca69f92c269fd.zip |
Fix build error with clang 4.
Diffstat (limited to 'security')
-rw-r--r-- | security/md5deep/files/patch-src_hash.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/security/md5deep/files/patch-src_hash.cpp b/security/md5deep/files/patch-src_hash.cpp new file mode 100644 index 000000000000..285059c3f423 --- /dev/null +++ b/security/md5deep/files/patch-src_hash.cpp @@ -0,0 +1,11 @@ +--- src/hash.cpp.orig 2014-01-29 18:40:39 UTC ++++ src/hash.cpp +@@ -279,7 +279,7 @@ void file_data_hasher_t::hash() + MAP_FILE| + #endif + MAP_SHARED,fd,0); +- if(fdht->base>0){ ++ if(fdht->base != nullptr){ + /* mmap is successful, so set the bounds. + * if it is not successful, we default to reading the fd + */ |