Ticket #5936: sendmsg.c.aix.patch

File sendmsg.c.aix.patch, 475 bytes (added by schlenk, 2 years ago)

Patch to add _LINUX_SOURCE_COMPAT

  • sendmsg.c

    old new  
    1111 * your Python version.  */ 
    1212typedef int Py_ssize_t; 
    1313#endif 
    1414 
    1515#include <sys/types.h> 
    16 #include <sys/socket.h> 
     16#if defined(_AIX) 
     17# define _LINUX_SOURCE_COMPAT 
     18# include <sys/socket.h> 
     19#else 
     20# include <sys/socket.h> 
     21#endif 
    1722#include <signal.h> 
    1823 
    1924/* 
    2025 * As per 
    2126 * <http://pubs.opengroup.org/onlinepubs/007904875/basedefs/sys/socket.h.html