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)
156156check_include_files("stdlib.h" HAVE_STDLIB_H)
157157check_include_files("string.h" HAVE_STRING_H)
158158check_include_files("strings.h" HAVE_STRINGS_H)
159- check_include_files("sys/cdefs.h" HAVE_SYS_CDEFS_H)
160159check_include_files("sys/guarded.h" HAVE_SYS_GUARDED_H)
161160check_include_files("sys/stat.h" HAVE_SYS_STAT_H)
162161check_include_files("sys/types.h" HAVE_SYS_TYPES_H)
Original file line number Diff line number Diff line change 176176/* Define to 1 if you have the `sysconf' function. */
177177#cmakedefine01 HAVE_SYSCONF
178178
179- /* Define to 1 if you have the <sys/cdefs.h> header file. */
180- #cmakedefine01 HAVE_SYS_CDEFS_H
181-
182179/* Define to 1 if you have the <sys/guarded.h> header file. */
183180#cmakedefine HAVE_SYS_GUARDED_H
184181
Original file line number Diff line number Diff line change 1313#ifndef __OS_LINUX_BASE__
1414#define __OS_LINUX_BASE__
1515
16+ #if __has_include (< sys /sysmacros .h > )
17+ #include <sys/sysmacros.h>
18+ #endif
1619#include <sys/param.h>
1720
18- #if HAVE_SYS_CDEFS_H
21+ #if __has_include ( < sys / cdefs . h > )
1922#include <sys/cdefs.h>
2023#endif
2124
Original file line number Diff line number Diff line change 2828#define __DISPATCH_PRIVATE__
2929
3030#ifdef __APPLE__
31+ #include <Availability.h>
32+ #include <os/availability.h>
3133#include <TargetConditionals.h>
34+ #include <os/base.h>
35+ #elif defined(__linux__ )
36+ #include <os/linux_base.h>
3237#endif
3338
3439#if TARGET_OS_MAC
3944#if HAVE_UNISTD_H
4045#include <unistd.h>
4146#endif
42- #if HAVE_SYS_CDEFS_H
43- #include <sys/cdefs.h>
44- #endif
4547#include <pthread.h>
4648#if TARGET_OS_MAC
4749#include <pthread/qos.h>
You can’t perform that action at this time.
0 commit comments