aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2013-06-08 20:13:24 +0200
committerJan Djärv2013-06-08 20:13:24 +0200
commitb33f93eea9ddf94aaa4c48b9c057a58b8fa2b6c9 (patch)
tree7fec26bb221a967dd3dbe6834dc32e950fba8465
parent1698f87abddff63b6c8662276334936e249d80a2 (diff)
downloademacs-b33f93eea9ddf94aaa4c48b9c057a58b8fa2b6c9.tar.gz
emacs-b33f93eea9ddf94aaa4c48b9c057a58b8fa2b6c9.zip
Fix compilation issues for GNUStep and GLIB conflicts.
* configure.ac (HAVE_GLIB): Only set XGSELOBJ if HAVE_NS = no. (with_file_notification): Don't set to gfile if with_ns = yes. * src/process.c (wait_reading_process_output): Check for NS before GLIB. GLIB may be linked in due to rsvg, but ns_select must be called. * src/xgselect.c (xg_select): Remove call to window_system_available and g_main_context_pending at the top, so Gdk events (i.e. file notify) are processed when Emacs is started with -nw. * src/xgselect.c: Remove unneeded include xterm.h
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac8
-rw-r--r--src/ChangeLog5
-rw-r--r--src/process.c8
-rw-r--r--src/xgselect.c1
5 files changed, 20 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 35238bda964..04ad375f55e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12013-06-08 Jan Djärv <jan.h.d@swipnet.se>
2
3 * configure.ac (HAVE_GLIB): Only set XGSELOBJ if HAVE_NS = no.
4 (with_file_notification): Don't set to gfile if with_ns = yes.
5
12013-06-07 Richard Copley <rcopley@gmail.com> (tiny change) 62013-06-07 Richard Copley <rcopley@gmail.com> (tiny change)
2 7
3 * Makefile.in (msys_to_w32): Modify to support d:\foo file names. 8 * Makefile.in (msys_to_w32): Modify to support d:\foo file names.
diff --git a/configure.ac b/configure.ac
index f23a9334a73..9c51d2113a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2317,7 +2317,9 @@ if test "${with_file_notification}" = "yes"; then
2317 if test "${opsys}" = "mingw32"; then 2317 if test "${opsys}" = "mingw32"; then
2318 with_file_notification=w32 2318 with_file_notification=w32
2319 else 2319 else
2320 with_file_notification=gfile 2320 if test "${with_ns}" != yes; then
2321 with_file_notification=gfile
2322 fi
2321 fi 2323 fi
2322fi 2324fi
2323 2325
@@ -3627,7 +3629,9 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM(
3627AC_MSG_RESULT([$links_glib]) 3629AC_MSG_RESULT([$links_glib])
3628if test "${links_glib}" = "yes"; then 3630if test "${links_glib}" = "yes"; then
3629 AC_DEFINE(HAVE_GLIB, 1, [Define to 1 if GLib is linked in.]) 3631 AC_DEFINE(HAVE_GLIB, 1, [Define to 1 if GLib is linked in.])
3630 XGSELOBJ=xgselect.o 3632 if test "$HAVE_NS" = no;then
3633 XGSELOBJ=xgselect.o
3634 fi
3631fi 3635fi
3632AC_SUBST(XGSELOBJ) 3636AC_SUBST(XGSELOBJ)
3633 3637
diff --git a/src/ChangeLog b/src/ChangeLog
index 7d650885f19..629f90678e6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12013-06-08 Jan Djärv <jan.h.d@swipnet.se> 12013-06-08 Jan Djärv <jan.h.d@swipnet.se>
2 2
3 * xgselect.c: Remove unneeded include xterm.h
4
5 * process.c (wait_reading_process_output): Check for NS before GLIB.
6 GLIB may be linked in due to rsvg, but ns_select must be called.
7
3 * xgselect.c (xg_select): Remove call to window_system_available 8 * xgselect.c (xg_select): Remove call to window_system_available
4 and g_main_context_pending at the top, so Gdk events (i.e. file 9 and g_main_context_pending at the top, so Gdk events (i.e. file
5 notify) are processed when Emacs is started with -nw. 10 notify) are processed when Emacs is started with -nw.
diff --git a/src/process.c b/src/process.c
index 6ae02494d36..e51b45bd64f 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4528,10 +4528,10 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4528 } 4528 }
4529#endif 4529#endif
4530 4530
4531#if defined (HAVE_GLIB) 4531#if defined (HAVE_NS)
4532 nfds = xg_select 4532 nfds = ns_select
4533#elif defined (HAVE_NS) 4533#elif defined (HAVE_GLIB)
4534 nfds = ns_select 4534 nfds = xg_select
4535#else 4535#else
4536 nfds = pselect 4536 nfds = pselect
4537#endif 4537#endif
diff --git a/src/xgselect.c b/src/xgselect.c
index e2d14f12e9f..4d90298a9d9 100644
--- a/src/xgselect.c
+++ b/src/xgselect.c
@@ -25,7 +25,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
25 25
26#include <glib.h> 26#include <glib.h>
27#include <errno.h> 27#include <errno.h>
28#include "xterm.h"
29#include "frame.h" 28#include "frame.h"
30 29
31int 30int