From b914fd47caf4bf142a94e1e844d1ebc601e57279 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 16 May 2024 20:58:39 -0700 Subject: [PATCH] unixodbc: fix compilation with GCC14 Wrong pointer type. Signed-off-by: Rosen Penev --- libs/unixodbc/Makefile | 2 +- libs/unixodbc/patches/010-gcc14.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 libs/unixodbc/patches/010-gcc14.patch diff --git a/libs/unixodbc/Makefile b/libs/unixodbc/Makefile index c45b69183c..e2b863d9c3 100644 --- a/libs/unixodbc/Makefile +++ b/libs/unixodbc/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=unixodbc PKG_VERSION:=2.3.12 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=unixODBC-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.unixodbc.org diff --git a/libs/unixodbc/patches/010-gcc14.patch b/libs/unixodbc/patches/010-gcc14.patch new file mode 100644 index 0000000000..539015ebaa --- /dev/null +++ b/libs/unixodbc/patches/010-gcc14.patch @@ -0,0 +1,11 @@ +--- a/Drivers/Postgre7.1/info.c ++++ b/Drivers/Postgre7.1/info.c +@@ -1786,7 +1786,7 @@ HSTMT hcol_stmt; + StatementClass *col_stmt, *indx_stmt; + char column_name[MAX_INFO_STRING], relhasrules[MAX_INFO_STRING]; + char **column_names = 0; +-Int4 column_name_len; ++SQLLEN column_name_len; + int total_columns = 0; + char error = TRUE; + ConnInfo *ci; -- 2.30.2