pidgin/pidgin

Parents e2967758a0c4
Children 3f81150e326b
usr/include/dispatch/dispatch.h on macos has a bad macro test that requires HAVE_UNISTD_H to have a value, this works around it.
--- 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)