File emacs-23.3-xgselect.patch of Package emacs
--- src/xgselect.c +++ src/xgselect.c 2012-05-24 11:07:45.793270370 +0000 @@ -60,6 +60,11 @@ xg_select (max_fds, rfds, wfds, efds, ti xfree (gfds); gfds = xmalloc (sizeof (*gfds) * gfds_size); } + else if (!gfds) + { + gfds_size = 1; + gfds = xmalloc (sizeof (*gfds)); + } n_gfds = g_main_context_query (context, G_PRIORITY_LOW,