Solaris doesn't know AF_LOCAL
This commit is contained in:
parent
a1e2c6dfed
commit
7e4ce57367
2
net.c
2
net.c
@ -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 */
|
||||||
|
6
net.h
6
net.h
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user