From: Nickolas Lloyd Date: Sun, 29 Jan 2017 18:43:39 +0000 (-0500) Subject: ; Fix a compilation error when HAVE_LIBJIT=0 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dd45c930b2f35fc84f4fc5e15f03ed06fb042415;p=emacs.git ; 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. --- 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; }