1 $NetBSD: patch-libgo_runtime_proc.c,v 1.1 2013/04/02 09:57:52 jperkin Exp $
   2 
   3 SunOS libelf does not support largefile.
   4 
   5 --- gcc-4.7.2.orig/libgo/runtime/proc.c.orig    2012-07-26 01:57:22.000000000 +0000
   6 +++ gcc-4.7.2/libgo/runtime/proc.c
   7 @@ -10,6 +10,10 @@
   8  #include "config.h"
   9  
  10  #ifdef HAVE_DL_ITERATE_PHDR
  11 +#ifdef __sun
  12 +#undef _FILE_OFFSET_BITS
  13 +#define _FILE_OFFSET_BITS 32
  14 +#endif
  15  #include <link.h>
  16  #endif
  17