diff options
Diffstat (limited to 'news/pan/patches/patch-ac')
-rw-r--r-- | news/pan/patches/patch-ac | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/news/pan/patches/patch-ac b/news/pan/patches/patch-ac deleted file mode 100644 index 9443534e071..00000000000 --- a/news/pan/patches/patch-ac +++ /dev/null @@ -1,43 +0,0 @@ -$NetBSD: patch-ac,v 1.6 2002/10/27 08:31:54 rh Exp $ - ---- pan/pan.c.orig Mon Jul 15 04:04:34 2002 -+++ pan/pan.c -@@ -43,6 +43,27 @@ - #include <pan/thread-watch.h> - #include <pan/util.h> - -+#ifdef __NetBSD__ -+#include <pthread.h> -+ -+#ifdef _PTH_PTHREAD_H_ -+#include <gtk/gtk.h> -+ -+/* -+ * Pth is non-preemptive, so we yield the processor periodically -+ */ -+ -+gint -+pth_nbschedule (gpointer data) -+{ -+ pthread_yield_np(); -+ -+ return TRUE; -+} -+#endif -+#endif -+ -+ - static gint save_session (GnomeClient * client, - gint phase, - GnomeSaveStyle save_style, -@@ -197,6 +218,10 @@ main (int argc, char *argv[]) - newsrc_import (s, newsrc_filename, newsrc_port_subscribed_only); - } - } -+ -+#ifdef _PTH_PTHREAD_H_ -+ gtk_timeout_add (200, pth_nbschedule, NULL); -+#endif - - gtk_main (); - |