*** ./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
*** ./ext/sockets/sockets.c.ORIG	Tue Jun  5 21:51:24 2012
--- ./ext/sockets/sockets.c	Tue Jun  5 21:51:44 2012
***************
*** 84,89 ****
--- 84,93 ----
  
  #include "multicast.h"
  
+ #if (defined(_AIX51) || defined(_AIX52) || defined(_AIX53)) && !(defined(_AIX61))
+ #define ss_family __ss_family
+ #endif
+ 
  ZEND_DECLARE_MODULE_GLOBALS(sockets)
  static PHP_GINIT_FUNCTION(sockets);
  
*** ./ext/standard/string.c.ORIG	Mon Feb 25 13:53:31 2013
--- ./ext/standard/string.c	Mon Feb 25 13:54:22 2013
***************
*** 26,32 ****
  #ifdef PHP_WIN32
  # include "win32/php_stdint.h"
  #else
! # include <stdint.h>
  #endif
  #include "php.h"
  #include "php_rand.h"
--- 26,36 ----
  #ifdef PHP_WIN32
  # include "win32/php_stdint.h"
  #else
! # if defined(_AIX51) && !defined(_AIX52)
! #  include <inttypes.h>
! # else
! #  include <stdint.h>
! # endif
  #endif
  #include "php.h"
  #include "php_rand.h"
