X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/24f753a8b996a364273019ea791fe89f87cff678..e5f794ff3abd844a08c0b01faa15550fd7014d7c:/deps/hiredis/fmacros.h diff --git a/deps/hiredis/fmacros.h b/deps/hiredis/fmacros.h index 38f46482..21cd9cfe 100644 --- a/deps/hiredis/fmacros.h +++ b/deps/hiredis/fmacros.h @@ -1,15 +1,16 @@ -#ifndef _REDIS_FMACRO_H -#define _REDIS_FMACRO_H +#ifndef __HIREDIS_FMACRO_H +#define __HIREDIS_FMACRO_H +#if !defined(_BSD_SOURCE) #define _BSD_SOURCE +#endif -#ifdef __linux__ -#define _XOPEN_SOURCE 700 +#if defined(__sun__) +#define _POSIX_C_SOURCE 200112L +#elif defined(__linux__) +#define _XOPEN_SOURCE 600 #else #define _XOPEN_SOURCE #endif -#define _LARGEFILE_SOURCE -#define _FILE_OFFSET_BITS 64 - #endif