mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
Correctly check for 32-bit file size limitations on Solaris;
the MAXOFF_T value changed from 32-bit to 64-bit in Solaris 7.
This commit is contained in:
parent
9cd177c636
commit
fbb81cb4ed
@ -102,7 +102,7 @@ extern kmutex_t afs_rxglobal_lock;
|
|||||||
#undef AfsLargeFileUio
|
#undef AfsLargeFileUio
|
||||||
#define AfsLargeFileUio(uio) ( (uio)->_uio_offset._p._u ? 1 : 0 )
|
#define AfsLargeFileUio(uio) ( (uio)->_uio_offset._p._u ? 1 : 0 )
|
||||||
#undef AfsLargeFileSize
|
#undef AfsLargeFileSize
|
||||||
#define AfsLargeFileSize(pos, off) ( ((offset_t)(pos)+(offset_t)(off) > (offset_t)MAXOFF_T)?1:0)
|
#define AfsLargeFileSize(pos, off) ( ((offset_t)(pos)+(offset_t)(off) > (offset_t)0x7fffffff)?1:0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _OSI_MACHDEP_H_ */
|
#endif /* _OSI_MACHDEP_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user