From 895eedeb9bfbef9d5d722c63a4e94973901fd041 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Sep 2017 13:46:24 +0530 Subject: [PATCH] Apparently pthread_mutex_t is a scalar on macs --- kitty/child-monitor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 5f97a1087..dfd070261 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -48,7 +48,11 @@ static Child add_queue[MAX_CHILDREN] = {{0}}, remove_queue[MAX_CHILDREN] = {{0}} static unsigned long remove_notify[MAX_CHILDREN] = {0}; static size_t add_queue_count = 0, remove_queue_count = 0; static struct pollfd fds[MAX_CHILDREN + EXTRA_FDS] = {{0}}; +#ifdef __APPLE__ +static pthread_mutex_t children_lock = {0}; +#else static pthread_mutex_t children_lock = {{0}}; +#endif static bool created = false, signal_received = false; static uint8_t drain_buf[1024]; static int signal_fds[2], wakeup_fds[2];