Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
7e4ce573
Commit
7e4ce573
authored
Dec 16, 2010
by
Pieter Noordhuis
Browse files
Solaris doesn't know AF_LOCAL
parent
a1e2c6df
Changes
2
Hide whitespace changes
Inline
Side-by-side
net.c
View file @
7e4ce573
...
@@ -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 */
...
...
net.h
View file @
7e4ce573
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment