From 1b4f0868078a1488c7ed3603b885e6a05ec12716 Mon Sep 17 00:00:00 2001 From: "Aaron M. Ucko" Date: Thu, 9 May 2024 14:02:36 -0400 Subject: [PATCH] {dblib,odbc}/unittests/common.h: Allow FREETDS_SRCDIR overrides. Signed-off-by: Aaron M. Ucko --- src/dblib/unittests/common.h | 2 ++ src/odbc/unittests/common.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/dblib/unittests/common.h b/src/dblib/unittests/common.h index 6532a129c5..eb987f7117 100644 --- a/src/dblib/unittests/common.h +++ b/src/dblib/unittests/common.h @@ -41,7 +41,9 @@ #define EXIT_SUCCESS 0 #endif +#ifndef FREETDS_SRCDIR #define FREETDS_SRCDIR FREETDS_TOPDIR "/src/dblib/unittests" +#endif #if defined(HAVE__SNPRINTF) && !defined(HAVE_SNPRINTF) #define snprintf _snprintf diff --git a/src/odbc/unittests/common.h b/src/odbc/unittests/common.h index e3f88434c0..2a5a843cfc 100644 --- a/src/odbc/unittests/common.h +++ b/src/odbc/unittests/common.h @@ -41,7 +41,9 @@ #endif #endif +#ifndef FREETDS_SRCDIR #define FREETDS_SRCDIR FREETDS_TOPDIR "/src/odbc/unittests" +#endif extern HENV odbc_env; extern HDBC odbc_conn;