*** ./nbase/nbase_misc.c.ORIG Mon Mar 25 11:09:25 2013 --- ./nbase/nbase_misc.c Mon Mar 25 11:04:30 2013 *************** *** 150,155 **** --- 150,159 ---- #endif } + #if (defined(_AIX51) || defined(_AIX52) || defined(_AIX53)) && !(defined(_AIX61)) + #define ss_family __ss_family + #endif + /* Compares two sockaddr_storage structures with a return value like strcmp. First the address families are compared, then the addresses if the families are equal. The structures must be real full-length sockaddr_storage *** ./nsock/src/nsock_connect.c.ORIG Mon Mar 25 11:02:51 2013 --- ./nsock/src/nsock_connect.c Mon Mar 25 11:03:34 2013 *************** *** 127,132 **** --- 127,137 ---- return nsi->sd; } + + #if (defined(_AIX51) || defined(_AIX52) || defined(_AIX53)) && !(defined(_AIX61)) + #define ss_family __ss_family + #endif + /* This does the actual logistics of requesting a TCP connection. It is * shared by nsock_connect_tcp and nsock_connect_ssl */ void nsock_connect_internal(mspool *ms, msevent *nse, int proto, *** ./nsock/src/nsock_core.c.ORIG Mon Mar 25 11:02:55 2013 --- ./nsock/src/nsock_core.c Mon Mar 25 11:03:42 2013 *************** *** 525,530 **** --- 525,535 ---- return; } + + #if (defined(_AIX51) || defined(_AIX52) || defined(_AIX53)) && !(defined(_AIX61)) + #define ss_family __ss_family + #endif + void handle_write_result(mspool *ms, msevent *nse, enum nse_status status) { *** ./nsock/src/nsock_write.c.ORIG Mon Mar 25 11:02:59 2013 --- ./nsock/src/nsock_write.c Mon Mar 25 11:03:53 2013 *************** *** 124,129 **** --- 124,134 ---- return nse->id; } + + #if (defined(_AIX51) || defined(_AIX52) || defined(_AIX53)) && !(defined(_AIX61)) + #define ss_family __ss_family + #endif + /* Write some data to the socket. If the write is not COMPLETED within timeout_msecs , NSE_STATUS_TIMEOUT will be returned. If you are supplying NUL-terminated data, you can optionally pass -1 for datalen and nsock_write will figure out the length itself */ nsock_event_id nsock_write(nsock_pool ms_pool, nsock_iod ms_iod, nsock_ev_handler handler, int timeout_msecs, *** ./crypto.cc.ORIG Mon Mar 25 11:09:49 2013 --- ./crypto.cc Mon Mar 25 11:12:12 2013 *************** *** 96,102 **** #include #include #include ! #ifndef WIN32 #include #endif #include "crypto.h" --- 96,102 ---- #include #include #include ! #if !defined(WIN32) && !(defined(_AIX51) && !defined(_AIX52)) #include #endif #include "crypto.h"