diff --git a/include/haproxy/activity-t.h b/include/haproxy/activity-t.h index 9faeecdb3..82666d305 100644 --- a/include/haproxy/activity-t.h +++ b/include/haproxy/activity-t.h @@ -36,11 +36,6 @@ #ifdef USE_MEMORY_PROFILING -/* Elements used by memory profiling. This determines the number of buckets to - * store stats. - */ -#define MEMPROF_HASH_BITS 10 -#define MEMPROF_HASH_BUCKETS (1U << MEMPROF_HASH_BITS) enum memprof_method { MEMPROF_METH_UNKNOWN = 0, diff --git a/include/haproxy/defaults.h b/include/haproxy/defaults.h index eda346aa2..73e8e0c92 100644 --- a/include/haproxy/defaults.h +++ b/include/haproxy/defaults.h @@ -547,6 +547,14 @@ # define RING_DFLT_QUEUES 6 #endif +/* Elements used by memory profiling. This determines the number of buckets to + * store stats. + */ +#ifndef MEMPROF_HASH_BITS +# define MEMPROF_HASH_BITS 10 +#endif +#define MEMPROF_HASH_BUCKETS (1U << MEMPROF_HASH_BITS) + /* Let's make DEBUG_STRICT default to 1 to get rid of it in the makefile */ #ifndef DEBUG_STRICT # define DEBUG_STRICT 1