aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2022-09-30 17:13:33 +0200
committerDamjan Marion <dmarion@0xa5.net>2022-10-11 15:13:47 +0000
commit6531cf5d1cffab8690c42847eef4f00f3018bb70 (patch)
treec59882f41f290b263386fa8ba5c8dd56cb0646f6 /src/vlib
parent91246bc6a28ef6838c417d4a559208e9cc8cbb85 (diff)
vppinfra: fix AddressSanitizer
When checking for CLIB_SANITIZE_ADDR to enable specific behavior for AddressSanitizer, we must have vppinfra/clib.h included as it is defined there. Type: fix Change-Id: I9060c3c29c1289d28596c215a1d1709b2ea7c84e Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/main.h1
-rw-r--r--src/vlib/node_funcs.h1
-rw-r--r--src/vlib/physmem.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/vlib/main.h b/src/vlib/main.h
index acb9924ac44..a9cfab4f841 100644
--- a/src/vlib/main.h
+++ b/src/vlib/main.h
@@ -40,6 +40,7 @@
#ifndef included_vlib_main_h
#define included_vlib_main_h
+#include <vppinfra/clib.h>
#include <vppinfra/callback_data.h>
#include <vppinfra/elog.h>
#include <vppinfra/format.h>
diff --git a/src/vlib/node_funcs.h b/src/vlib/node_funcs.h
index 45a36fef1be..115127ffee0 100644
--- a/src/vlib/node_funcs.h
+++ b/src/vlib/node_funcs.h
@@ -45,6 +45,7 @@
#ifndef included_vlib_node_funcs_h
#define included_vlib_node_funcs_h
+#include <vppinfra/clib.h>
#include <vppinfra/fifo.h>
#include <vppinfra/tw_timer_1t_3w_1024sl_ov.h>
#include <vppinfra/interrupt.h>
diff --git a/src/vlib/physmem.c b/src/vlib/physmem.c
index a36444fdc9f..76f8494b331 100644
--- a/src/vlib/physmem.c
+++ b/src/vlib/physmem.c
@@ -21,6 +21,7 @@
#include <sys/stat.h>
#include <unistd.h>
+#include <vppinfra/clib.h>
#include <vppinfra/linux/sysfs.h>
#include <vlib/vlib.h>
#include <vlib/physmem.h>