]> git.saurik.com Git - redis.git/blob - deps/hiredis/fmacros.h
Define _XOPEN_SOURCE appropriately on NetBSD.
[redis.git] / deps / hiredis / fmacros.h
1 #ifndef __HIREDIS_FMACRO_H
2 #define __HIREDIS_FMACRO_H
3
4 #if !defined(_BSD_SOURCE)
5 #define _BSD_SOURCE
6 #endif
7
8 #if defined(__sun__)
9 #define _POSIX_C_SOURCE 200112L
10 #elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
11 #define _XOPEN_SOURCE 600
12 #else
13 #define _XOPEN_SOURCE
14 #endif
15
16 #endif