aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-08-01 14:38:36 +0200
committerDamjan Marion <damarion@cisco.com>2018-08-01 14:39:58 +0200
commit5f21e1bd613b372ea6f8be6423894548dae59bdc (patch)
treebc88c9c1f3aec1c4768078514b9f6392ee037b0a /src/vppinfra
parentafc725afaed47f90f48f148c5c8f74348e0aaf23 (diff)
Store USE_DLMALLOC in vppinfra/config.h
Change-Id: Ib596e7f525b83dc7e830bcf6a126cd210216ce86 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/cache.h3
-rw-r--r--src/vppinfra/clib.h2
-rw-r--r--src/vppinfra/config.h.in1
3 files changed, 3 insertions, 3 deletions
diff --git a/src/vppinfra/cache.h b/src/vppinfra/cache.h
index ac0835523cb..7a54d34dfee 100644
--- a/src/vppinfra/cache.h
+++ b/src/vppinfra/cache.h
@@ -45,9 +45,6 @@
*/
#ifndef CLIB_LOG2_CACHE_LINE_BYTES
-/* defines CLIB_LOG2_CACHE_LINE_BYTES */
-#include <vppinfra/config.h>
-
/* Default cache line size of 64 bytes. */
#ifndef CLIB_LOG2_CACHE_LINE_BYTES
#define CLIB_LOG2_CACHE_LINE_BYTES 6
diff --git a/src/vppinfra/clib.h b/src/vppinfra/clib.h
index 42748b0a34c..a6f88245d79 100644
--- a/src/vppinfra/clib.h
+++ b/src/vppinfra/clib.h
@@ -38,6 +38,8 @@
#ifndef included_clib_h
#define included_clib_h
+#include <vppinfra/config.h>
+
/* Standalone means to not assume we are running on a Unix box. */
#if ! defined (CLIB_STANDALONE) && ! defined (CLIB_LINUX_KERNEL)
#define CLIB_UNIX
diff --git a/src/vppinfra/config.h.in b/src/vppinfra/config.h.in
index 0947c7166f0..58a973144e0 100644
--- a/src/vppinfra/config.h.in
+++ b/src/vppinfra/config.h.in
@@ -20,4 +20,5 @@
#define CLIB_LOG2_CACHE_LINE_BYTES @LOG2_CACHE_LINE_BYTES@
#endif
+#define USE_DLMALLOC @DLMALLOC@
#endif