diff options
author | antirez <antirez@gmail.com> | 2014-06-30 16:28:22 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-06-30 16:29:12 +0200 |
commit | 0afb7a48c079c083d4efaaec99168538c536c49d (patch) | |
tree | 550d931a3f7cf65f751ab4e39dd175fcb5c3abd3 /src | |
parent | 54157bc49ebf7b49a1d2a95c7b09b4e3ce56e2a6 (diff) | |
download | redis-0afb7a48c079c083d4efaaec99168538c536c49d.tar.gz |
Fix Solaris compilation due to ctime_r() call.
Introduced in Redis 2.8.10 because of a change in Sentinel.
This closes issue #1837.
Diffstat (limited to 'src')
-rw-r--r-- | src/fmacros.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fmacros.h b/src/fmacros.h index c16f5e204..44e378a68 100644 --- a/src/fmacros.h +++ b/src/fmacros.h @@ -46,6 +46,10 @@ #define _XOPEN_SOURCE #endif +#if defined(__sun) +#define _POSIX_C_SOURCE 199506L +#endif + #define _LARGEFILE_SOURCE #define _FILE_OFFSET_BITS 64 |