From 7fd96e5723d8943bfc864a479b8b94d6ce83580b Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Thu, 18 Jan 2007 22:25:55 +0000 Subject: [PATCH] Bug fix: Cannot use 64 bit file access in procfs under solaris. svn path=/trunk/boinc/; revision=11900 --- lib/mem_usage.C | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/mem_usage.C b/lib/mem_usage.C index af0e1fb5e2..2ef7dffc9f 100644 --- a/lib/mem_usage.C +++ b/lib/mem_usage.C @@ -23,6 +23,12 @@ #ifndef _WIN32 #include "config.h" +#ifdef HAVE_PROCFS_H +// Can't use large file calls with solaris procfs. +#if defined(_FILE_OFFSET_BITS) && ( _FILE_OFFSET_BITS == 64 ) +#undef _FILE_OFFSET_BITS +#endif +#endif #include #include #include