*** ./src/os/unix/ngx_posix_config.h.ORIG	Fri Oct 26 12:22:49 2012
--- ./src/os/unix/ngx_posix_config.h	Fri Oct 26 12:23:07 2012
***************
*** 131,136 ****
--- 131,146 ----
  #define ngx_debug_init()
  
  
+ #if defined(_AIX) && !defined(_AIX53)
+ #ifndef CMSG_LEN
+ #define CMSG_LEN(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
+ #endif
+ #ifndef CMSG_SPACE
+ #define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len))
+ #endif
+ #endif
+ 
+ 
  #if (__FreeBSD__) && (__FreeBSD_version < 400017)
  
  #include <sys/param.h>          /* ALIGN() */
