From ddff46f8fea3d886f850bdbf6e7c06ac35e647a2 Mon Sep 17 00:00:00 2001
From: David Carlier <dcarlier@deviceatlas.com>
Date: Tue, 28 Mar 2023 06:24:49 +0100
Subject: [PATCH] BUILD/MINOR: da Minor build update to still both support the
 v2 and v3 api. In the second half of the year and for the next major HAProxy
 release  branch, v2 could be dropped altogether.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d99cf78d7..b5d160251 100644
--- a/Makefile
+++ b/Makefile
@@ -670,7 +670,7 @@ ifneq ($(USE_DEVICEATLAS),)
     OPTIONS_OBJS += $(DEVICEATLAS_LIB)/dac.o
   endif
   OPTIONS_OBJS += addons/deviceatlas/da.o
-  DEVICEATLAS_CFLAGS += $(if $(DEVICEATLAS_INC),-I$(DEVICEATLAS_INC))
+  DEVICEATLAS_CFLAGS += $(if $(DEVICEATLAS_INC),-I$(DEVICEATLAS_INC)) $(if $(DEVICEATLAS_SRC),-DDATLAS_DA_NOCACHE)
 endif
 
 # Use 51DEGREES_SRC and possibly 51DEGREES_INC and 51DEGREES_LIB to force path
-- 
2.37.2

