*** ./ext/mysqlnd/mysqlnd_result.c.ORIG	Sun Aug 21 22:01:56 2011
--- ./ext/mysqlnd/mysqlnd_result.c	Sun Aug 21 22:06:54 2011
***************
*** 31,36 ****
--- 31,43 ----
  
  #define MYSQLND_SILENT
  
+ #if defined(_AIX51) && !defined(_AIX52)
+ #if (__64BIT__)
+ #define SIZE_MAX        UINT64_MAX
+ #else
+ #define SIZE_MAX        UINT32_MAX
+ #endif
+ #endif
  
  /* {{{ mysqlnd_res::initialize_result_set_rest */
  static enum_func_status
