diff options
Diffstat (limited to 'src/anet.h')
-rw-r--r-- | src/anet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/anet.h b/src/anet.h index bef0adcfa..118b4ddac 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); |