Subject: bug#14654: process.c glib issues

From: Glenn Morris <[email-masked]>
Date: Tue, 18 Jun 2013 13:26:06 -0400

Package: emacs
Version: 24.3.50

Current trunk on RHEL6 GNU/Linux, --without-gconf --without-gsettings
--with-x-toolkit=athena, glib2-2.22.5-7:

process.c: In function 'wait_reading_process_output':
process.c:4538: warning: implicit declaration of function 'xg_select'

The following in process.c seems inconsistent:

  #if defined (USE_GTK) || defined (HAVE_GCONF) || defined (HAVE_GSETTINGS)
  #include "xgselect.h"
  #endif

  [...]

  #elif defined (HAVE_GLIB)
    nfds = xg_select
  #else

I also see:

process.c: In function 'init_process_emacs':
process.c:7074: warning: implicit declaration of function 'g_source_unref'
process.c:7074: warning: implicit declaration of function 'g_child_watch_source_new'