Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Turbo码先生
redis
提交
009cabf1
R
redis
项目概览
Turbo码先生
/
redis
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
009cabf1
编写于
7月 29, 2014
作者:
S
siahl
提交者:
antirez
8月 07, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add support for compiling on AIX
Closes #1900
上级
42655316
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
26 addition
and
3 deletion
+26
-3
deps/hiredis/fmacros.h
deps/hiredis/fmacros.h
+4
-0
deps/hiredis/net.h
deps/hiredis/net.h
+1
-1
src/Makefile
src/Makefile
+7
-1
src/anet.h
src/anet.h
+5
-1
src/fmacros.h
src/fmacros.h
+4
-0
src/redis.h
src/redis.h
+5
-0
未找到文件。
deps/hiredis/fmacros.h
浏览文件 @
009cabf1
...
...
@@ -5,6 +5,10 @@
#define _BSD_SOURCE
#endif
#if defined(_AIX)
#define _ALL_SOURCE
#endif
#if defined(__sun__)
#define _POSIX_C_SOURCE 200112L
#elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
...
...
deps/hiredis/net.h
浏览文件 @
009cabf1
...
...
@@ -35,7 +35,7 @@
#include "hiredis.h"
#if defined(__sun)
#if defined(__sun)
|| defined(_AIX)
#define AF_LOCAL AF_UNIX
#endif
...
...
src/Makefile
浏览文件 @
009cabf1
...
...
@@ -62,13 +62,19 @@ ifeq ($(uname_S),SunOS)
else
ifeq
($(uname_S),Darwin)
# Darwin (nothing to do)
else
ifeq
($(uname_S),AIX)
# AIX
FINAL_LDFLAGS
+=
-Wl
,-bexpall
FINAL_LIBS
+=
-pthread
-lcrypt
-lbsd
else
# All the other OSes (notably Linux)
FINAL_LDFLAGS
+=
-rdynamic
FINAL_LIBS
+=
-pthread
endif
endif
endif
# Include paths to dependencies
FINAL_CFLAGS
+=
-I
../deps/hiredis
-I
../deps/linenoise
-I
../deps/lua/src
...
...
src/anet.h
浏览文件 @
009cabf1
...
...
@@ -39,10 +39,14 @@
#define ANET_NONE 0
#define ANET_IP_ONLY (1<<0)
#if defined(__sun)
#if defined(__sun)
|| defined(_AIX)
#define AF_LOCAL AF_UNIX
#endif
#ifdef _AIX
#undef ip_len
#endif
int
anetTcpConnect
(
char
*
err
,
char
*
addr
,
int
port
);
int
anetTcpNonBlockConnect
(
char
*
err
,
char
*
addr
,
int
port
);
int
anetTcpNonBlockBindConnect
(
char
*
err
,
char
*
addr
,
int
port
,
char
*
source_addr
);
...
...
src/fmacros.h
浏览文件 @
009cabf1
...
...
@@ -36,6 +36,10 @@
#define _GNU_SOURCE
#endif
#if defined(_AIX)
#define _ALL_SOURCE
#endif
#if defined(__linux__) || defined(__OpenBSD__)
#define _XOPEN_SOURCE 700
/*
...
...
src/redis.h
浏览文件 @
009cabf1
...
...
@@ -626,6 +626,11 @@ typedef struct redisOpArray {
struct
clusterState
;
#ifdef _AIX
#undef hz
#endif
struct
redisServer
{
/* General */
pid_t
pid
;
/* Main process pid. */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录