Skip to content

Commit

Permalink
fix(ODBC): mac build and run #4230
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Nov 2, 2023
1 parent 73e191f commit 5e6bb8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Data/ODBC/ODBC.make
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@
#

ifndef POCO_ODBC_INCLUDE
ifeq (0, $(shell test -e /usr/include/sql.h; echo $$?))
POCO_ODBC_INCLUDE = /usr/include
else ifeq (0, $(shell test -e /opt/homebrew/include; echo $$?))
POCO_ODBC_INCLUDE = /opt/homebrew/include
endif
endif

ifndef POCO_ODBC_LIB
ifeq (0, $(shell test -d /usr/lib/$(OSARCH)-linux-gnu; echo $$?))
POCO_ODBC_LIB = /usr/lib/$(OSARCH)-linux-gnu
else ifeq (0, $(shell test -d /usr/lib64; echo $$?))
POCO_ODBC_LIB = /usr/lib64
else ifeq (0, $(shell test -d /opt/homebrew/lib; echo $$?))
POCO_ODBC_LIB = /opt/homebrew/lib
else
POCO_ODBC_LIB = /usr/lib
endif
Expand Down
2 changes: 2 additions & 0 deletions Data/ODBC/testsuite/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ ifneq ($(OSNAME),Darwin)
SYSLIBS += -lltdl
endif
ifneq ($(OSNAME),FreeBSD)
ifneq ($(OSNAME),Darwin)
SYSLIBS += -ldl
endif
endif

objects = ODBCTestSuite Driver \
ODBCDB2Test ODBCMySQLTest ODBCOracleTest ODBCPostgreSQLTest \
Expand Down
1 change: 0 additions & 1 deletion Data/testsuite/src/SQLExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include "Poco/Data/Transaction.h"
#include "Poco/UnicodeConverter.h"
#include "Poco/UTFString.h"
#include <sqltypes.h>
#include <iostream>
#include <sstream>
#include <iterator>
Expand Down

0 comments on commit 5e6bb8e

Please sign in to comment.