Permalink
Browse files

Solaris 10 doesn't know AF_LOCAL

  • Loading branch information...
1 parent 736d447 commit 78055bd4ca9fa927160dc30ecd7a1407830abc02 @pietern pietern committed Dec 23, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/anet.h
View
@@ -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);

0 comments on commit 78055bd

Please sign in to comment.