From 0055c2f414635649fe0e2b8c8b0becd2e3baffca Mon Sep 17 00:00:00 2001
From: "Tobias S. Josefowitz" <tobij@tobij.de>
Date: Wed, 12 Jun 2013 20:18:28 +0200
Subject: [PATCH] interpret.c: only call call_check_threads_etc() when defined

---
 src/interpret.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/interpret.c b/src/interpret.c
index 5c47d1592d..2d9fafe612 100644
--- a/src/interpret.c
+++ b/src/interpret.c
@@ -2114,7 +2114,9 @@ int lower_mega_apply( INT32 args, struct object *o, ptrdiff_t fun )
           function->num_calls++;
           function->recur_depth++;
 #endif
+#ifdef PIKE_USE_MACHINE_CODE
           call_check_threads_etc();
+#endif
 
           if( !constant )
           {
-- 
GitLab