summaryrefslogtreecommitdiff
path: root/src/unistd/_POSIX2_C_VERSION.c
blob: 44c9a0ba1c2dad7d3a4c2ad4fea7354824060a5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <unistd.h>

#if (defined _POSIX_C_SOURCE)
#if _POSIX_C_SOURCE >= 200809L
#define _POSIX2_C_VERSION                                              (200809L)
#elif _POSIX_C_SOURCE >= 200112L
#define _POSIX2_C_VERSION                                              (200112L)
#elif _POSIX_C_SOURCE >= 199506L
#define _POSIX2_C_VERSION                                              (199506L)
#elif _POSIX_C_SOURCE >= 2
#define _POSIX2_C_VERSION                                              (199209L)
#else
#undef _POSIX2_C_VERSION
#endif
#endif

/*
POSIX(2)
*/