X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ab17b909fe46603f78c8305a3cf2f02a0c6de0a4..d4d3a70da2c9be4c5aa67a0be735568dbe436568:/src/anet.h?ds=sidebyside diff --git a/src/anet.h b/src/anet.h index 45a89464..118b4dda 100644 --- a/src/anet.h +++ b/src/anet.h @@ -35,6 +35,10 @@ #define ANET_ERR -1 #define ANET_ERR_LEN 256 +#if defined(__sun) +#define AF_LOCAL AF_UNIX +#endif + int anetTcpConnect(char *err, char *addr, int port); int anetTcpNonBlockConnect(char *err, char *addr, int port); int anetUnixConnect(char *err, char *path); @@ -44,7 +48,7 @@ int anetResolve(char *err, char *host, char *ipbuf); int anetTcpServer(char *err, int port, char *bindaddr); int anetUnixServer(char *err, char *path); int anetTcpAccept(char *err, int serversock, char *ip, int *port); -int anetUnixAccept(char *err, int serversock, char *path, int len); +int anetUnixAccept(char *err, int serversock); int anetWrite(int fd, char *buf, int count); int anetNonBlock(char *err, int fd); int anetTcpNoDelay(char *err, int fd);