gvim with FEAT_GUI_GNOME fails to compile against GNOME 2.18. See 
https://bugs.gentoo.org/show_bug.cgi?id=176566 for more info.

This patch solves the problem.

Index: vim7/src/gui_gtk.c
===================================================================
--- vim7.orig/src/gui_gtk.c
+++ vim7/src/gui_gtk.c
@@ -53,6 +53,9 @@
 # ifdef bindtextdomain
 #  undef bindtextdomain
 # endif
+# ifdef bind_textdomain_codeset
+#  undef bind_textdomain_codeset
+# endif
 # if defined(FEAT_GETTEXT) && !defined(ENABLE_NLS)
 #  define ENABLE_NLS   /* so the texts in the dialog boxes are translated */
 # endif
Index: vim7/src/gui_gtk_x11.c
===================================================================
--- vim7.orig/src/gui_gtk_x11.c
+++ vim7/src/gui_gtk_x11.c
@@ -36,6 +36,9 @@
 # ifdef bindtextdomain
 #  undef bindtextdomain
 # endif
+# ifdef bind_textdomain_codeset
+#  undef bind_textdomain_codeset
+# endif
 # if defined(FEAT_GETTEXT) && !defined(ENABLE_NLS)
 #  define ENABLE_NLS   /* so the texts in the dialog boxes are translated */
 # endif

Reply via email to