File tree Expand file tree Collapse file tree 6 files changed +5
-7
lines changed Expand file tree Collapse file tree 6 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,6 @@ check_include_files("strings.h" HAVE_STRINGS_H)
221
221
check_include_files ("sys/guarded.h" HAVE_SYS_GUARDED_H )
222
222
check_include_files ("sys/stat.h" HAVE_SYS_STAT_H )
223
223
check_include_files ("sys/types.h" HAVE_SYS_TYPES_H )
224
- check_include_files ("unistd.h" HAVE_UNISTD_H )
225
224
check_include_files ("objc/objc-internal.h" HAVE_OBJC )
226
225
227
226
if (HAVE_MACH )
Original file line number Diff line number Diff line change 192
192
/* Define to 1 if you have the <TargetConditionals.h> header file. */
193
193
#cmakedefine HAVE_TARGETCONDITIONALS_H
194
194
195
- /* Define to 1 if you have the <unistd.h> header file. */
196
- #cmakedefine01 HAVE_UNISTD_H
197
-
198
195
/* Define to 1 if you have the `_pthread_workqueue_init' function. */
199
196
#cmakedefine HAVE__PTHREAD_WORKQUEUE_INIT
200
197
Original file line number Diff line number Diff line change 35
35
#include <stdint.h>
36
36
#include <stdbool.h>
37
37
#include <stdarg.h>
38
- #if ! defined(HAVE_UNISTD_H ) || HAVE_UNISTD_H
38
+ #if defined(__unix__ ) || (defined( __APPLE__ ) && defined( __MACH__ ))
39
39
#include <unistd.h>
40
40
#endif
41
41
#include <fcntl.h>
Original file line number Diff line number Diff line change 41
41
#include <mach/mach.h>
42
42
#include <mach/message.h>
43
43
#endif
44
- #if HAVE_UNISTD_H
44
+ #if defined( __unix__ ) || (defined( __APPLE__ ) && defined( __MACH__ ))
45
45
#include <unistd.h>
46
46
#endif
47
47
#include <pthread.h>
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ DISPATCH_EXPORT DISPATCH_NOTHROW void dispatch_atfork_child(void);
285
285
#include <stdio.h>
286
286
#include <stdlib.h>
287
287
#include <string.h>
288
- #if HAVE_UNISTD_H
288
+ #if defined( __unix__ ) || (defined( __APPLE__ ) && defined( __MACH__ ))
289
289
#include <unistd.h>
290
290
#endif
291
291
Original file line number Diff line number Diff line change @@ -903,7 +903,9 @@ libdispatch_init(void)
903
903
}
904
904
905
905
#if DISPATCH_USE_THREAD_LOCAL_STORAGE
906
+ #if defined(__unix__ ) || (defined(__APPLE__ ) && defined(__MACH__ ))
906
907
#include <unistd.h>
908
+ #endif
907
909
#include <sys/syscall.h>
908
910
909
911
#ifndef __ANDROID__
You can’t perform that action at this time.
0 commit comments