From 0afb7a48c079c083d4efaaec99168538c536c49d Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 30 Jun 2014 16:28:22 +0200 Subject: Fix Solaris compilation due to ctime_r() call. Introduced in Redis 2.8.10 because of a change in Sentinel. This closes issue #1837. --- src/fmacros.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/fmacros.h') 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 -- cgit v1.2.1