updated for version 7.0057
diff --git a/src/os_unix.c b/src/os_unix.c
index 5df0d35..c23d88b 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -841,7 +841,10 @@
 }
 #endif
 
-#if defined(HAVE_SETJMP_H) || defined(PROTO)
+#if (defined(HAVE_SETJMP_H) \
+	&& ((defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)) \
+	    || defined(FEAT_LIBCALL))) \
+    || defined(PROTO)
 /*
  * A simplistic version of setjmp() that only allows one level of using.
  * Don't call twice before calling mch_endjmp()!.