Ticket #53602: src_assuan-socket_INADDR_LOOPBACK.patch

File src_assuan-socket_INADDR_LOOPBACK.patch, 476 bytes (added by ballapete (Peter "Pete" Dyballa), 7 years ago)

patch to make libassuan build on Tiger

  • src/assuan-socket.c

    old new  
    3535# include <sys/types.h>
    3636# include <sys/socket.h>
    3737# include <netinet/in.h>
     38#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050 /* or 1060, when Leopard, Mac OS X 10.6, needs it also */
     39  #define       INADDR_LOOPBACK         (u_int32_t)0x7f000001
     40#endif   /* __MAC_OS_X_VERSION_MIN_REQUIRED < 1050 */
    3841# include <arpa/inet.h>
    3942#endif
    4043#include <errno.h>