diff -r 6dcc96fa3970 Modules/posixmodule.c --- a/Modules/posixmodule.c Mon Sep 22 22:44:21 2014 -0400 +++ b/Modules/posixmodule.c Tue Sep 23 06:21:55 2014 -0700 @@ -12708,7 +12708,10 @@ #endif /* HAVE_TRUNCATE */ -#ifdef HAVE_POSIX_FALLOCATE +/* AIX currently does not support a 32-bit call to posix_fallocate() + if _LARGE_FILES is defined. + */ +#if defined(HAVE_POSIX_FALLOCATE) && !(defined(_AIX) && defined(_LARGE_FILES) && !defined(__64BIT__)) /*[clinic input] os.posix_fallocate @@ -12774,7 +12777,10 @@ #endif /* HAVE_POSIX_FALLOCATE */ -#ifdef HAVE_POSIX_FADVISE +/* AIX currently does not support a 32-bit call to posix_fadvise() + if _LARGE_FILES is defined. + */ +#if defined(HAVE_POSIX_FADVISE) && !(defined(_AIX) && defined(_LARGE_FILES) && !defined(__64BIT__)) /*[clinic input] os.posix_fadvise