]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix a compilation error when HAVE_LIBJIT=0
authorNickolas Lloyd <ultrageek.lloyd@gmail.com>
Sun, 29 Jan 2017 18:43:39 +0000 (13:43 -0500)
committerNickolas Lloyd <ultrageek.lloyd@gmail.com>
Sun, 29 Jan 2017 18:43:39 +0000 (13:43 -0500)
; * src/alloc.c (cleanup_vector): Add a guard around libjit-specific
functions in case HAVE_LIBJIT=0.

src/alloc.c

index fe7bc12f414d45b9ad2c6b08872eea83251f534d..4c62f810c3b4ea4c8cc057f1ce837623c4569b9a 100644 (file)
@@ -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;
     }