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
redis
Commits
b5dc2c5b
"app/vscode:/vscode.git/clone" did not exist on "4af68d83604a942e878e44cf27dddbc94322e4f2"
Commit
b5dc2c5b
authored
Jul 29, 2014
by
siahl
Committed by
antirez
Aug 27, 2014
Browse files
Add support for compiling on AIX
Closes #1900
parent
cbd1607c
Changes
6
Show whitespace changes
Inline
Side-by-side
deps/hiredis/fmacros.h
View file @
b5dc2c5b
...
...
@@ -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
View file @
b5dc2c5b
...
...
@@ -35,7 +35,7 @@
#include "hiredis.h"
#if defined(__sun)
#if defined(__sun)
|| defined(_AIX)
#define AF_LOCAL AF_UNIX
#endif
...
...
src/Makefile
View file @
b5dc2c5b
...
...
@@ -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
View file @
b5dc2c5b
...
...
@@ -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
anetUnixConnect
(
char
*
err
,
char
*
path
);
...
...
src/fmacros.h
View file @
b5dc2c5b
...
...
@@ -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
View file @
b5dc2c5b
...
...
@@ -582,6 +582,10 @@ typedef struct redisOpArray {
* Global server state
*----------------------------------------------------------------------------*/
#ifdef _AIX
#undef hz
#endif
struct
redisServer
{
/* General */
char
*
configfile
;
/* Absolute config file path, or NULL */
...
...
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