Fix CDR builds when includes are in freetds directory off include
[asterisk/asterisk.git] / cdr / Makefile
index 30284ce..575a019 100644 (file)
@@ -61,6 +61,11 @@ endif
 
 MLFLAGS=
 
+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/freetds),)
+  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/include/freetds
+  MLFLAGS+=-L$(CROSS_COMPILE_TARGET)/usr/lib/postgresql
+endif
+
 ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/postgresql),)
   CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/include/postgresql
   MLFLAGS+=-L$(CROSS_COMPILE_TARGET)/usr/lib/postgresql