Bug fix: Cannot use 64 bit file access in procfs under solaris.

svn path=/trunk/boinc/; revision=11900
This commit is contained in:
Eric J. Korpela 2007-01-18 22:25:55 +00:00
parent 7550b38daf
commit 7fd96e5723
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@
#ifndef _WIN32 #ifndef _WIN32
#include "config.h" #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 <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>