]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ifdef out free function
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 6 Dec 2016 12:10:49 +0000 (07:10 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 6 Dec 2016 12:10:49 +0000 (07:10 -0500)
src/lib/regex.c

index 37cef99aaf0d2d9f7fd251bfda608747c6ca2468..f6e56892ca85e70d3a2513d39ffa87d046d74684 100644 (file)
@@ -205,6 +205,7 @@ static const FR_NAME_NUMBER regex_pcre_error_str[] = {
        { NULL, 0 }
 };
 
+#ifdef HAVE_PCRE_JIT_EXEC
 /** Free a PCRE JIT stack on exit
  *
  * @param[in] stack to free.
@@ -213,6 +214,7 @@ static void _pcre_jit_stack_free(void *stack)
 {
        pcre_jit_stack_free(stack);
 }
+#endif
 
 /** Wrapper around pcre_exec
  *