diff --git a/Sources/cmysql/macos.pc b/Sources/cmysql/macos.pc index 055b192..b948c38 100644 --- a/Sources/cmysql/macos.pc +++ b/Sources/cmysql/macos.pc @@ -1,9 +1,9 @@ -prefix=/usr/local/opt/mysql +prefix=/opt/homebrew/opt/mysql-client exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: MySQL Description: MySQL client library Version: 2.0 -Cflags: -I${includedir} +Cflags: -I${includedir} -I${includedir}/mysql Libs: -L${libdir} -lmysqlclient diff --git a/Sources/cmysql/shim.h b/Sources/cmysql/shim.h index 290fc66..40386e5 100644 --- a/Sources/cmysql/shim.h +++ b/Sources/cmysql/shim.h @@ -1,7 +1,8 @@ #ifndef __CMYSQL_SHIM_H__ #define __CMYSQL_SHIM_H__ -#include +// Xcode 26.1 compatibility: Use absolute path for dependency scanner +#include "/opt/homebrew/opt/mysql-client/include/mysql/mysql.h" #if LIBMYSQL_VERSION_ID >= 80000 typedef int my_bool;