Bug 526457. Fix AIX compilation. r=bsmedberg

This commit is contained in:
Uli Link 2010-03-15 14:43:16 +13:00
parent 21e79119b6
commit bce9503f5c
2 changed files with 11 additions and 4 deletions

View file

@ -35,10 +35,11 @@
#undef MIN
#define MIN(x,y) (((x)<(y)) ? (x) : (y))
//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/
// This variable lives in libbz2. It's declared in bzlib_private.h, so we just
// declare it here to avoid including that entire header file.
/* This variable lives in libbz2. It's declared in bzlib_private.h, so we just
* declare it here to avoid including that entire header file.
*/
extern unsigned int BZ2_crc32Table[256];
static unsigned int
@ -54,7 +55,7 @@ crc32(const unsigned char *buf, unsigned int len)
return crc;
}
//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/
static void
reporterr(int e, const char *fmt, ...)
@ -400,3 +401,4 @@ int main(int argc,char *argv[])
return 0;
}

View file

@ -87,6 +87,11 @@
#endif
#if defined(HAVE_STAT64) && defined(HAVE_LSTAT64)
#if defined (AIX)
#if defined STAT
#undef STAT
#endif
#endif
#define STAT stat64
#define LSTAT lstat64
#define HAVE_STATS64 1