Add support for compiling on AIX

Closes #1900
This commit is contained in:
siahl
2014-07-29 16:39:37 -05:00
committed by antirez
parent 426553164d
commit 009cabf103
6 changed files with 26 additions and 3 deletions

View File

@ -39,10 +39,14 @@
#define ANET_NONE 0
#define ANET_IP_ONLY (1<<0)
#if defined(__sun)
#if defined(__sun) || defined(_AIX)
#define AF_LOCAL AF_UNIX
#endif
#ifdef _AIX
#undef ip_len
#endif
int anetTcpConnect(char *err, char *addr, int port);
int anetTcpNonBlockConnect(char *err, char *addr, int port);
int anetTcpNonBlockBindConnect(char *err, char *addr, int port, char *source_addr);