binutils-gold-git: Add missing patch

This commit is contained in:
Kamil Rytarowski 2017-11-11 09:39:13 +01:00
parent e9d6b89cbf
commit b53402f74e
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
$NetBSD$
--- gold/output.cc.orig 2017-10-29 22:52:18.000000000 +0000
+++ gold/output.cc
@@ -129,7 +129,8 @@ gold_fallocate(int o, off_t offset, off_
{
#ifdef HAVE_POSIX_FALLOCATE
if (parameters->options().posix_fallocate())
- return ::posix_fallocate(o, offset, len);
+ if (::posix_fallocate(o, offset, len) == 0)
+ return 0;
#endif // defined(HAVE_POSIX_FALLOCATE)
#ifdef HAVE_FALLOCATE
if (::fallocate(o, 0, offset, len) == 0)