*** ./Lib/cgi.py.ORIG	Fri Nov 25 16:17:18 2011
--- ./Lib/cgi.py	Fri Nov 25 16:17:28 2011
***************
*** 1,4 ****
! #! /usr/local/bin/python
  
  # NOTE: the above "/usr/local/bin/python" is NOT a mistake.  It is
  # intentionally NOT "/usr/bin/env python".  On many systems
--- 1,4 ----
! #! /usr/bin/python
  
  # NOTE: the above "/usr/local/bin/python" is NOT a mistake.  It is
  # intentionally NOT "/usr/bin/env python".  On many systems
*** ./Modules/_multiprocessing/multiprocessing.c.ORIG	Fri Aug  2 18:32:50 2013
--- ./Modules/_multiprocessing/multiprocessing.c	Fri Aug  2 18:35:21 2013
***************
*** 8,13 ****
--- 8,20 ----
  
  #include "multiprocessing.h"
  
+ #ifndef CMSG_SPACE
+ #define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len))
+ #endif
+ #ifndef CMSG_LEN
+ #define CMSG_LEN(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
+ #endif
+ 
  #if (defined(CMSG_LEN) && defined(SCM_RIGHTS))
      #define HAVE_FD_TRANSFER 1
  #else
*** ./setup.py.ORIG	Thu Jan 12 17:30:18 2017
--- ./setup.py	Thu Jan 12 17:31:01 2017
***************
*** 1587,1592 ****
--- 1587,1600 ----
              macros = dict()
              libraries = []
  
+         elif host_platform.startswith('aix'):
+             macros = dict(                  # AIX5L V5.1 and higher
+                 HAVE_SEM_OPEN=1,
+                 HAVE_SEM_TIMEDWAIT=0,
+                 HAVE_FD_TRANSFER=1
+                 )
+             libraries = ['rt']
+ 
          else:                                   # Linux and other unices
              macros = dict()
              libraries = ['rt']
