mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 01:20:50 +00:00
This is hiredis f225c276be7fd0646019b51023e3f41566633dfe This update includes all changes that diverged inside of Redis since the last update. This version also allows optional source address binding for connections which we need for some Sentinel deployments.
21 lines
350 B
C
21 lines
350 B
C
#ifndef __HIREDIS_FMACRO_H
|
|
#define __HIREDIS_FMACRO_H
|
|
|
|
#if !defined(_BSD_SOURCE)
|
|
#define _BSD_SOURCE
|
|
#endif
|
|
|
|
#if defined(__sun__)
|
|
#define _POSIX_C_SOURCE 200112L
|
|
#elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
|
#define _XOPEN_SOURCE 600
|
|
#else
|
|
#define _XOPEN_SOURCE
|
|
#endif
|
|
|
|
#if __APPLE__ && __MACH__
|
|
#define _OSX
|
|
#endif
|
|
|
|
#endif
|