File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,6 @@ check_include_files("stdint.h" HAVE_STDINT_H)
156
156
check_include_files ("stdlib.h" HAVE_STDLIB_H )
157
157
check_include_files ("string.h" HAVE_STRING_H )
158
158
check_include_files ("strings.h" HAVE_STRINGS_H )
159
- check_include_files ("sys/cdefs.h" HAVE_SYS_CDEFS_H )
160
159
check_include_files ("sys/guarded.h" HAVE_SYS_GUARDED_H )
161
160
check_include_files ("sys/stat.h" HAVE_SYS_STAT_H )
162
161
check_include_files ("sys/types.h" HAVE_SYS_TYPES_H )
Original file line number Diff line number Diff line change 176
176
/* Define to 1 if you have the `sysconf' function. */
177
177
#cmakedefine01 HAVE_SYSCONF
178
178
179
- /* Define to 1 if you have the <sys/cdefs.h> header file. */
180
- #cmakedefine01 HAVE_SYS_CDEFS_H
181
-
182
179
/* Define to 1 if you have the <sys/guarded.h> header file. */
183
180
#cmakedefine HAVE_SYS_GUARDED_H
184
181
Original file line number Diff line number Diff line change 13
13
#ifndef __OS_LINUX_BASE__
14
14
#define __OS_LINUX_BASE__
15
15
16
+ #if __has_include (< sys /sysmacros .h > )
17
+ #include <sys/sysmacros.h>
18
+ #endif
16
19
#include <sys/param.h>
17
20
18
- #if HAVE_SYS_CDEFS_H
21
+ #if __has_include ( < sys / cdefs . h > )
19
22
#include <sys/cdefs.h>
20
23
#endif
21
24
Original file line number Diff line number Diff line change 28
28
#define __DISPATCH_PRIVATE__
29
29
30
30
#ifdef __APPLE__
31
+ #include <Availability.h>
32
+ #include <os/availability.h>
31
33
#include <TargetConditionals.h>
34
+ #include <os/base.h>
35
+ #elif defined(__linux__ )
36
+ #include <os/linux_base.h>
32
37
#endif
33
38
34
39
#if TARGET_OS_MAC
39
44
#if HAVE_UNISTD_H
40
45
#include <unistd.h>
41
46
#endif
42
- #if HAVE_SYS_CDEFS_H
43
- #include <sys/cdefs.h>
44
- #endif
45
47
#include <pthread.h>
46
48
#if TARGET_OS_MAC
47
49
#include <pthread/qos.h>
You can’t perform that action at this time.
0 commit comments