termux-packages/packages/libiodbc/include-sqlext.h.patch

14 lines
431 B
Diff

--- a/include/sqlext.h
+++ b/include/sqlext.h
@@ -476,8 +476,8 @@
#define SQL_OPT_TRACE_FILE_DEFAULT "\\SQL.LOG"
#define SQL_OPT_TRACE_FILE_DEFAULTW L"\\SQL.LOG"
#else
-#define SQL_OPT_TRACE_FILE_DEFAULT "/tmp/odbc.log"
-#define SQL_OPT_TRACE_FILE_DEFAULTW L"/tmp/odbc.log"
+#define SQL_OPT_TRACE_FILE_DEFAULT "@TERMUX_PREFIX@/tmp/odbc.log"
+#define SQL_OPT_TRACE_FILE_DEFAULTW L"@TERMUX_PREFIX@/tmp/odbc.log"
#endif