Commit 65b472ac authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Solaris 10 doesn't know AF_LOCAL

parent ba559326
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
#define ANET_ERR -1 #define ANET_ERR -1
#define ANET_ERR_LEN 256 #define ANET_ERR_LEN 256
#if defined(__sun)
#define AF_LOCAL AF_UNIX
#endif
int anetTcpConnect(char *err, char *addr, int port); int anetTcpConnect(char *err, char *addr, int port);
int anetTcpNonBlockConnect(char *err, char *addr, int port); int anetTcpNonBlockConnect(char *err, char *addr, int port);
int anetUnixConnect(char *err, char *path); int anetUnixConnect(char *err, char *path);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment