diff options
author | antirez <antirez@gmail.com> | 2015-02-03 10:09:21 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-02-03 10:09:21 +0100 |
commit | 45102a6f639712cd6025112bac6a988dc6e6b897 (patch) | |
tree | 86bc7cd5bb9f71c0fcfbf484b745e83d37e976b0 /src | |
parent | 128c642d055c4502db8d096c3d63b971d4708c92 (diff) | |
download | redis-45102a6f639712cd6025112bac6a988dc6e6b897.tar.gz |
Norrow backtrace and setproctitle() to Linux+glibc.
Backtrace is a glibc extension, while setproctitle() implementation
depends on the memory layout and is partially libc dependent.
Diffstat (limited to 'src')
-rw-r--r-- | src/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h index 2b5004baa..1ed8ef301 100644 --- a/src/config.h +++ b/src/config.h @@ -57,7 +57,7 @@ #endif /* Test for backtrace() */ -#if defined(__APPLE__) || defined(__linux__) +#if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) #define HAVE_BACKTRACE 1 #endif @@ -118,7 +118,7 @@ #define USE_SETPROCTITLE #endif -#if (defined __linux || defined __APPLE__) +#if ((defined __linux && defined(__GLIBC__)) || defined __APPLE__) #define USE_SETPROCTITLE #define INIT_SETPROCTITLE_REPLACEMENT void spt_init(int argc, char *argv[]); |