From 65b472acceaf1c359ae22a410fc608c5fb311ffa Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 23 Dec 2010 11:09:07 +0000 Subject: Solaris 10 doesn't know AF_LOCAL --- src/anet.h | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.1