*** ./iodev/network/eth_vde.cc.ORIG	Fri Jul  4 11:12:52 2014
--- ./iodev/network/eth_vde.cc	Fri Jul  4 11:13:10 2014
***************
*** 213,218 ****
--- 213,222 ----
    class_ptr->rx_timer();
  }
  
+ #ifdef _AIX
+ #define MSG_DONTWAIT MSG_NONBLOCK
+ #endif
+ 
  void bx_vde_pktmover_c::rx_timer()
  {
    int nbytes;
*** ./configure.ORIG	Fri Jul  4 11:20:10 2014
--- ./configure	Fri Jul  4 11:20:36 2014
***************
*** 25435,25441 ****
  
  	# More AIX lossage: must compile with cc_r
  	# Extract the first word of "cc_r", so it can be a program name with args.
! set dummy cc_r; ac_word=$2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  $as_echo_n "checking for $ac_word... " >&6; }
  if ${ac_cv_prog_PTHREAD_CC+:} false; then :
--- 25435,25441 ----
  
  	# More AIX lossage: must compile with cc_r
  	# Extract the first word of "cc_r", so it can be a program name with args.
! set dummy xlc_r; ac_word=$2
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  $as_echo_n "checking for $ac_word... " >&6; }
  if ${ac_cv_prog_PTHREAD_CC+:} false; then :
***************
*** 25451,25457 ****
    test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_PTHREAD_CC="cc_r"
      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
      break 2
    fi
--- 25451,25457 ----
    test -z "$as_dir" && as_dir=.
      for ac_exec_ext in '' $ac_executable_extensions; do
    if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
!     ac_cv_prog_PTHREAD_CC="xlc_r"
      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
      break 2
    fi
*** ./iodev/network/eth_socket.cc.ORIG	Fri Sep 22 14:52:31 2017
--- ./iodev/network/eth_socket.cc	Fri Sep 22 15:36:51 2017
***************
*** 83,93 ****
--- 83,99 ----
  #include <sys/types.h>
  #include <sys/socket.h>
  #include <sys/ioctl.h>
+ #ifndef _AIX
  #include <netpacket/packet.h>
+ #endif
  #include <netinet/in.h>
+ #ifndef _AIX
  #include <net/ethernet.h>
+ #endif
  #include <net/if.h>
+ #ifndef _AIX
  #include <linux/types.h>
+ #endif
  #include <netdb.h>
  #define closesocket(s) close(s)
  typedef int SOCKET;
***************
*** 100,105 ****
--- 106,119 ----
  #ifdef WIN32
  #define MSG_NOSIGNAL 0
  #define MSG_DONTWAIT 0
+ #endif
+ 
+ #ifdef _AIX
+ #define MSG_DONTWAIT MSG_NONBLOCK
+ #endif
+ 
+ #if defined(_AIX) && !defined(_AIX61)
+ #define MSG_NOSIGNAL    0x100           /* Do not generate SIGPIPE. */ 
  #endif
  
  #define BX_PACKET_POLL  1000    // Poll for a frame every 1000 usecs
*** ./misc/bxhub.cc.ORIG	Fri Sep 22 15:02:02 2017
--- ./misc/bxhub.cc	Fri Sep 22 15:37:14 2017
***************
*** 54,59 ****
--- 54,67 ----
  #define MSG_DONTWAIT 0
  #endif
  
+ #ifdef _AIX
+ #define MSG_DONTWAIT MSG_NONBLOCK
+ #endif
+ 
+ #if defined(_AIX) && !defined(_AIX61)
+ #define MSG_NOSIGNAL    0x100           /* Do not generate SIGPIPE. */ 
+ #endif
+ 
  #include "misc/bxcompat.h"
  #include "osdep.h"
  #include "iodev/network/netmod.h"
