Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/openlaunchd
Path: blob/master/launchd/config.h
374 views
1
#ifndef __CONFIG_H__
2
#define __CONFIG_H__
3
4
#ifndef __has_include
5
#define __has_include(n) 0
6
#endif
7
8
#ifdef __APPLE__
9
/*
10
* TargetConditionals.h contains Autoconfiguration of TARGET_ conditionals for
11
* Mac OS X and iPhone. Unless we're on an __APPLE__ based system, we don't
12
* really have any requirement for these macros
13
*/
14
#include <TargetConditionals.h>
15
#endif
16
17
#if __has_include(<quarantine.h>)
18
#define HAVE_QUARANTINE 1
19
#else
20
#define HAVE_QUARANTINE 0
21
#endif
22
23
#if __has_include(<responsibility.h>)
24
#define HAVE_RESPONSIBILITY 1
25
#else
26
#define HAVE_RESPONSIBILITY 0
27
#endif
28
29
#if __has_include(<sandbox.h>)
30
#define HAVE_SANDBOX 1
31
#else
32
#define HAVE_SANDBOX 0
33
#endif
34
35
#define HAVE_LIBAUDITD !TARGET_OS_EMBEDDED
36
37
#if !TARGET_OS_EMBEDDED && __has_include(<systemstats/systemstats.h>)
38
#define HAVE_SYSTEMSTATS 1
39
#else
40
#define HAVE_SYSTEMSTATS 0
41
#endif
42
43
#endif /* __CONFIG_H__ */
44
45