X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/4fe83b554ac1b16ddad559df788b80d4864310e1..4c5f0966b2e582981d9fdaf3b511c6cf4ac4d4d5:/src/anet.h diff --git a/src/anet.h b/src/anet.h index bef0adcf..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);