From dd45c930b2f35fc84f4fc5e15f03ed06fb042415 Mon Sep 17 00:00:00 2001 From: Nickolas Lloyd Date: Sun, 29 Jan 2017 13:43:39 -0500 Subject: [PATCH] ; Fix a compilation error when HAVE_LIBJIT=0 ; * src/alloc.c (cleanup_vector): Add a guard around libjit-specific functions in case HAVE_LIBJIT=0. --- src/alloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/alloc.c b/src/alloc.c index fe7bc12f414..4c62f810c3b 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -3221,8 +3221,10 @@ cleanup_vector (struct Lisp_Vector *vector) else if (PSEUDOVECTOR_TYPEP (&vector->header, PVEC_COMPILED) && vector->contents[COMPILED_JIT_CTXT] != (Lisp_Object )NULL) { +#if HAVE_LIBJIT jit_context_t ctxt = (jit_context_t )vector->contents[COMPILED_JIT_CTXT]; jit_context_destroy (ctxt); +#endif vector->contents[COMPILED_JIT_CTXT] = (Lisp_Object )NULL; vector->contents[COMPILED_JIT_CLOSURE] = (Lisp_Object )NULL; } -- 2.39.5