diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 419c1981d218e8491a07dc82645b75a6623666cc..0a648806140a15eeaa3ffb9635ff8081a8b684de 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -4663,6 +4663,7 @@ ex_global(eap)
 	return;
     }
 
+#if 0
 #ifdef HAVE_SETJMP_H
     /*
      * Matching with a regexp may cause a very deep recursive call of
@@ -4681,6 +4682,7 @@ ex_global(eap)
 	got_int = TRUE;
 	goto jumpend;
     }
+#endif
 #endif
 
     /*
@@ -4698,9 +4700,11 @@ ex_global(eap)
 	line_breakcheck();
     }
 
+#if 0
 #ifdef HAVE_SETJMP_H
 jumpend:
     mch_endjmp();
+#endif
 #endif
 
     /*
diff --git a/src/proto/misc2.pro b/src/proto/misc2.pro
index 5cbd27018ebc8cbeddc421009a9d02c634c3a02f..41479d0e90e749a3b42cf194d1a37b76c75a429c 100644
--- a/src/proto/misc2.pro
+++ b/src/proto/misc2.pro
@@ -52,6 +52,7 @@ void ga_concat __ARGS((garray_T *gap, char_u *s));
 void ga_append __ARGS((garray_T *gap, int c));
 int name_to_mod_mask __ARGS((int c));
 int simplify_key __ARGS((int key, int *modifiers));
+int handle_x_keys __ARGS((int key));
 char_u *get_special_key_name __ARGS((int c, int modifiers));
 int trans_special __ARGS((char_u **srcp, char_u *dst, int keycode));
 int find_special_key __ARGS((char_u **srcp, int *modp, int keycode));