This repository has been archived by the owner on Dec 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathconfig.h
74 lines (68 loc) · 1.49 KB
/
config.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* If your system doesn't use "nobody" as a privilege separated user,
* then change it here or in the GNUmakefile.
*/
#ifndef NOBODY_USER
# define NOBODY_USER "nobody"
#endif
/*
* You can define this if your system has its /var/empty elsewhere.
*/
/* #define PATH_VAR_EMPTY "/var/empty" */
/*
* Require libbsd's stdlib.h for arc4random() etc.
* Require <grp.h> for setgroups().
*/
#ifdef __linux__
# define _GNU_SOURCE
# ifndef MUSL_LIBC
# include <bsd/stdlib.h>
# include <bsd/string.h>
# else
# include <errno.h>
# include <unistd.h>
# define getprogname() (program_invocation_short_name)
# endif
# include <grp.h>
#endif
/*
* Apple and NetBSD haven't got these.
*/
#if defined(__APPLE__) || defined(__NetBSD__)
# include <unistd.h>
int setresgid(gid_t, gid_t, gid_t);
int setresuid(gid_t, gid_t, gid_t);
#endif
/*
* Apple usually gets their libressl from homebrew.
* It'd be put in here, but let it be overriden.
*/
#if defined(__APPLE__)
# ifndef DEFAULT_CA_FILE
# define DEFAULT_CA_FILE "/usr/local/etc/libressl/cert.pem"
# endif
#endif
/*
* FreeBSD goop.
*/
#ifdef __FreeBSD__
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <resolv.h>
#endif
#if !defined(__BEGIN_DECLS)
# ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# else
# define __BEGIN_DECLS
# endif
#endif
#if !defined(__END_DECLS)
# ifdef __cplusplus
# define __END_DECLS }
# else
# define __END_DECLS
# endif
#endif