mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
suricata: Fix check for level one cache line size
riscv64 does not return any value on our machine (maybe because it is emulated?). "undefined" is however seen as a valid value, which makes the build fail. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
1bcf3c2a81
commit
a7834bcf10
@@ -0,0 +1,13 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index d56d3a550..81abf8f00 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -2313,7 +2313,7 @@ fi
|
||||
AC_PATH_PROG(HAVE_GETCONF_CMD, getconf, "no")
|
||||
if test "$HAVE_GETCONF_CMD" != "no"; then
|
||||
CLS=$(getconf LEVEL1_DCACHE_LINESIZE)
|
||||
- if [test "$CLS" != "" && test "$CLS" != "0"]; then
|
||||
+ if [test "$CLS" != "" && test "$CLS" != "0" && test "$CLS" != "undefined"]; then
|
||||
AC_DEFINE_UNQUOTED([CLS],[${CLS}],[L1 cache line size])
|
||||
else
|
||||
AC_DEFINE([CLS],[64],[L1 cache line size])
|
||||
Reference in New Issue
Block a user