Commit 7e4ce573 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Solaris doesn't know AF_LOCAL

parent a1e2c6df
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include "hiredis.h" #include "net.h"
#include "sds.h" #include "sds.h"
/* Forward declaration */ /* Forward declaration */
......
...@@ -31,6 +31,12 @@ ...@@ -31,6 +31,12 @@
#ifndef __NET_H #ifndef __NET_H
#define __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 redisContextConnectTcp(redisContext *c, const char *addr, int port);
int redisContextConnectUnix(redisContext *c, const char *path); int redisContextConnectUnix(redisContext *c, const 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