summaryrefslogtreecommitdiff
path: root/chat/spectrum/patches/patch-src_geventloop.h
diff options
context:
space:
mode:
Diffstat (limited to 'chat/spectrum/patches/patch-src_geventloop.h')
-rw-r--r--chat/spectrum/patches/patch-src_geventloop.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/chat/spectrum/patches/patch-src_geventloop.h b/chat/spectrum/patches/patch-src_geventloop.h
new file mode 100644
index 00000000000..15977d9e0a4
--- /dev/null
+++ b/chat/spectrum/patches/patch-src_geventloop.h
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_geventloop.h,v 1.1 2011/10/28 17:34:07 schnoebe Exp $
+
+# wrap the usage of ev.h in WITH_LIBEVENT (as should have been done.)
+# pushed upstream as http://spectrum.im/issues/233
+
+--- src/geventloop.h.orig 2011-06-11 13:17:44.000000000 +0000
++++ src/geventloop.h
+@@ -24,7 +24,9 @@
+ #include <glib.h>
+ #include "purple.h"
+ #include "eventloop.h"
+-#include "ev.h"
++#ifdef WITH_LIBEVENT
++# include "ev.h"
++#endif
+
+ #define READ_COND (G_IO_IN | G_IO_HUP | G_IO_ERR)
+ #define WRITE_COND (G_IO_OUT | G_IO_HUP | G_IO_ERR | G_IO_NVAL)