From a5c51ac6a6226d3c0aad55578084b155c6770176 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 13 Oct 2015 16:45:21 +0200 Subject: [PATCH] BUILD: properly report when USE_ZLIB and USE_SLZ are used together Use #error here otherwise the errors are hard to spot for the casual user. --- include/types/compression.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/types/compression.h b/include/types/compression.h index ecbd5a1225..b79d7704b7 100644 --- a/include/types/compression.h +++ b/include/types/compression.h @@ -24,6 +24,9 @@ #define _TYPES_COMP_H #if defined(USE_SLZ) +#ifdef USE_ZLIB +#error "Cannot build with both USE_SLZ and USE_ZLIB at the same time." +#endif #include #elif defined(USE_ZLIB) #include -- 2.47.3