Fix bug #82 - Crash writing a log larger than 2GB on a 32 bit system as _FILE_OFFSET_BITS was not declared to be 64.

This commit is contained in:
Jan Vidar Krey 2009-09-14 12:24:18 +02:00
parent 96ce64ee07
commit a53c219f05
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@
#ifndef HAVE_UHUB_SYSTEM_H #ifndef HAVE_UHUB_SYSTEM_H
#define HAVE_UHUB_SYSTEM_H #define HAVE_UHUB_SYSTEM_H
#define _FILE_OFFSET_BITS 64
#if USE_REGPARM && __GNUC__ >= 3 #if USE_REGPARM && __GNUC__ >= 3
#define REGPRM1 __attribute__((regparm(1))) #define REGPRM1 __attribute__((regparm(1)))
#define REGPRM2 __attribute__((regparm(2))) #define REGPRM2 __attribute__((regparm(2)))