Permalink
Browse files

Include sljitLir.h before the first use of SLJIT_VERBOSE.

  • Loading branch information...
1 parent 86c7888 commit 365009d3d74f617a21671679e29526258bfea58f @alnsn committed Aug 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/bpfjit.c
View
@@ -60,12 +60,12 @@
#include <sys/queue.h>
#include <sys/types.h>
+#include <sljitLir.h>
+
#if !defined(_KERNEL) && defined(SLJIT_VERBOSE) && SLJIT_VERBOSE
#include <stdio.h> /* for stderr */
#endif
-#include <sljitLir.h>
-
#define BPFJIT_A SLJIT_TEMPORARY_REG1
#define BPFJIT_X SLJIT_TEMPORARY_EREG1
@@ -869,7 +869,7 @@ bpfjit_generate_code(struct bpf_insn *insns, size_t insn_count)
if (compiler == NULL)
goto fail;
-#if defined(SLJIT_VERBOSE) && SLJIT_VERBOSE
+#if !defined(_KERNEL) && defined(SLJIT_VERBOSE) && SLJIT_VERBOSE
sljit_compiler_verbose(compiler, stderr);
#endif

0 comments on commit 365009d

Please sign in to comment.