libreoffice: update to 24.8.4.2
[oi-userland.git] / components / developer / gcc-12 / patches / 0013-libgo-libelf-on-illumos-doesn-t-support-largefile.patch
blobd3577e141292a7a7d78e83e23c15c488addd076b
1 From 7d62e9750149bb80810da65fbf55c941cb7083a3 Mon Sep 17 00:00:00 2001
2 From: Richard Lowe <richlowe@richlowe.net>
3 Date: Mon, 29 Oct 2018 18:23:00 +0000
4 Subject: libgo: libelf on illumos doesn't support largefile
6 Originally from pkgsrc
7 ---
8 libgo/runtime/proc.c | 4 ++++
9 1 file changed, 4 insertions(+)
11 diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
12 index 3a30748d329..29efc3e26c9 100644
13 --- a/libgo/runtime/proc.c
14 +++ b/libgo/runtime/proc.c
15 @@ -12,6 +12,10 @@
16 #include "config.h"
18 #ifdef HAVE_DL_ITERATE_PHDR
19 +#ifdef __sun
20 +#undef _FILE_OFFSET_BITS
21 +#define _FILE_OFFSET_BITS 32
22 +#endif
23 #include <link.h>
24 #endif