summaryrefslogtreecommitdiff
path: root/extra/emacs/emacs-23.3-xgselect_init.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/emacs/emacs-23.3-xgselect_init.patch')
-rw-r--r--extra/emacs/emacs-23.3-xgselect_init.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/emacs/emacs-23.3-xgselect_init.patch b/extra/emacs/emacs-23.3-xgselect_init.patch
new file mode 100644
index 000000000..f3168e0e2
--- /dev/null
+++ b/extra/emacs/emacs-23.3-xgselect_init.patch
@@ -0,0 +1,13 @@
+diff -up emacs-23.3/src/xgselect.c.xgselect_init emacs-23.3/src/xgselect.c
+--- emacs-23.3/src/xgselect.c.xgselect_init 2011-01-08 18:45:14.000000000 +0100
++++ emacs-23.3/src/xgselect.c 2011-11-11 13:00:53.211765255 +0100
+@@ -55,6 +55,9 @@ xg_select (max_fds, rfds, wfds, efds, ti
+ do {
+ if (n_gfds > gfds_size)
+ {
++ if (gfds_size == 0)
++ xgselect_initialize ();
++
+ while (n_gfds > gfds_size)
+ gfds_size *= 2;
+ xfree (gfds);