fmt: update to 11.1.2
[oi-userland.git] / components / developer / binutils / patches / 01-gold-fallocate.patch
bloba0e56313bcdb96b1577b6769974d9d0eb9461b1e
1 imported from OmniOS
2 Probably it's to avoid C++ namespace damage
4 diff -wpruN --no-dereference '--exclude=*.orig' a~/gold/output.cc a/gold/output.cc
5 --- a~/gold/output.cc 1970-01-01 00:00:00
6 +++ a/gold/output.cc 1970-01-01 00:00:00
7 @@ -131,7 +131,7 @@ gold_fallocate(int o, off_t offset, off_
8 if (len <= 0)
9 return 0;
11 -#ifdef HAVE_POSIX_FALLOCATE
12 +#if defined(HAVE_POSIX_FALLOCATE) && !defined(__illumos__)
13 if (parameters->options().posix_fallocate())
15 int err = ::posix_fallocate(o, offset, len);