pidgin/gtkidle.c

changeset 40039
dac8511b1992
parent 40038
e2967758a0c4
child 40041
da9efbd154f3
--- a/pidgin/gtkidle.c	Sun Oct 13 05:14:08 2019 -0500
+++ b/pidgin/gtkidle.c	Sun Oct 13 05:58:32 2019 -0500
@@ -24,9 +24,16 @@
 #include "gtkidle.h"
 
 #ifdef HAVE_IOKIT
-# ifndef HAVE_UNISTD_H
-#  define HAVE_UNISTD_H
+/* HAVE_UNISTD_H must have a value, see
+ * https://forums.developer.apple.com/thread/86887
+ */
+# ifdef HAVE_UNISTD_H
+#  undef HAVE_UNISTD_H
+#  define HAVE_UNISTD_H 1
+# else
+#  define HAVE_UNISTD_H 0
 # endif
+
 # include <CoreFoundation/CoreFoundation.h>
 # include <IOKit/IOKitLib.h>
 #elif defined (_WIN32)

mercurial