-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompliant.h
47 lines (40 loc) · 836 Bytes
/
compliant.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef _MAKEMORE_FEATURES_
#define _MAKEMORE_FEATURES_
#include <unistd.h>
#if !defined(_POSIX_C_SOURCE) && defined(_POSIX_VERSION)
# define _POSIX_C_SOURCE _POSIX_VERSION
#endif
#ifdef _POSIX_C_SOURCE
# define HAVE_GETNAMEINFO
# define HAVE_PWD
# if _POSIX_C_SOURCE >= 200112L
# define HAVE_SYMLINK
# endif
# if _POSIX_C_SOURCE >= 199309L
# define HAVE_SIGACTION
# endif
# if _POSIX_C_SOURCE >= 200809L
# define HAVE_STRDUP
# endif
# if _POSIX_C_SOURCE >= 2
# define HAVE_GETOPT
# endif
#endif
#ifdef _XOPEN_SOURCE
# define HAVE_GETOPT
# if _XOPEN_SOURCE >= 500
# define HAVE_LOCKF
# define HAVE_SYMLINK
# define HAVE_STRDUP
# endif
#endif
#ifdef _BSD_SOURCE
# define HAVE_LOCKF
# define HAVE_SYMLINK
# define HAVE_STRDUP
#endif
#ifndef NI_MAXHOST
# define NI_MAXHOST 1025
# define NI_MAXSERV 32
#endif
#endif