25 #if defined(__APPLE__) && defined(__MACH__) 26 # include <mach/mach.h> 27 # include <mach/task.h> 28 # include <mach/semaphore.h> 29 # include <TargetConditionals.h> 30 # define UV_PLATFORM_SEM_T semaphore_t 33 #define UV_IO_PRIVATE_PLATFORM_FIELDS \ 37 #define UV_PLATFORM_LOOP_FIELDS \ 38 uv_thread_t cf_thread; \ 41 uv_mutex_t cf_mutex; \ 43 void* cf_signals[2]; \ 45 #define UV_PLATFORM_FS_EVENT_FIELDS \ 46 uv__io_t event_watcher; \ 54 uv_mutex_t cf_mutex; \ 56 #define UV_STREAM_PRIVATE_PLATFORM_FIELDS \ 59 #define UV_HAVE_KQUEUE 1