pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

binutils-gold-git: Add missing patch



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat Nov 11 09:39:13 2017 +0100
Changeset:	b53402f74e90f97ab03fcc04f111eb8ffb814e37

Added Files:
	binutils-gold-git/patches/patch-gold_output.cc

Log Message:
binutils-gold-git: Add missing patch

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b53402f74e90f97ab03fcc04f111eb8ffb814e37

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 binutils-gold-git/patches/patch-gold_output.cc | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diffs:
diff --git a/binutils-gold-git/patches/patch-gold_output.cc b/binutils-gold-git/patches/patch-gold_output.cc
new file mode 100644
index 0000000000..ec11d49f6a
--- /dev/null
+++ b/binutils-gold-git/patches/patch-gold_output.cc
@@ -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)


Home | Main Index | Thread Index | Old Index