diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-12-16 22:59:07 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-12-16 22:59:07 +0100 |
commit | 7e4ce5736750e438dc4a94e2651b434faf0c98b5 (patch) | |
tree | a9c3b68d1c80893f04068be2ec325ae204d9e401 | |
parent | a1e2c6dfed9006764dacc78cd600c921a393d414 (diff) |
Solaris doesn't know AF_LOCAL
-rw-r--r-- | net.c | 2 | ||||
-rw-r--r-- | net.h | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -44,7 +44,7 @@ #include <stdarg.h> #include <stdio.h> -#include "hiredis.h" +#include "net.h" #include "sds.h" /* Forward declaration */ @@ -31,6 +31,12 @@ #ifndef __NET_H #define __NET_H +#include "hiredis.h" + +#if defined(__sun) +#define AF_LOCAL AF_UNIX +#endif + int redisContextConnectTcp(redisContext *c, const char *addr, int port); int redisContextConnectUnix(redisContext *c, const char *path); |