[packages/unixODBC] - added fix for bool in C23 mode
qboosh
qboosh at pld-linux.org
Sat Jul 18 10:09:10 CEST 2026
commit fea53cba2925bdbacd9451ce0b9c1886692fe7c9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 18 10:09:17 2026 +0200
- added fix for bool in C23 mode
unixODBC-bool.patch | 11 +++++++++++
unixODBC.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/unixODBC.spec b/unixODBC.spec
index 03d0d10..dcefce2 100644
--- a/unixODBC.spec
+++ b/unixODBC.spec
@@ -7,6 +7,7 @@ License: LGPL v2+ (libraries), GPL v2+ (programs, News Server driver)
Group: Libraries
Source0: ftp://ftp.unixodbc.org/pub/unixODBC/%{name}-%{version}.tar.gz
# Source0-md5: 316cede4896eb768fe4572d71dc04537
+Patch0: %{name}-bool.patch
URL: https://www.unixodbc.org/
BuildRequires: flex
BuildRequires: libltdl-devel >= 2:2
@@ -60,6 +61,7 @@ Biblioteki statyczne unixODBC.
%prep
%setup -q
+%patch -P0 -p1
%build
%configure \
diff --git a/unixODBC-bool.patch b/unixODBC-bool.patch
new file mode 100644
index 0000000..d43d9df
--- /dev/null
+++ b/unixODBC-bool.patch
@@ -0,0 +1,11 @@
+--- unixODBC-2.3.14/Drivers/Postgre7.1/md5.h.orig 2018-05-08 14:52:05.000000000 +0200
++++ unixODBC-2.3.14/Drivers/Postgre7.1/md5.h 2026-07-18 10:08:41.980427064 +0200
+@@ -19,7 +19,7 @@
+ /* From c.h */
+ #ifndef __BEOS__
+
+-#ifndef __cplusplus
++#if !(defined(__cplusplus) || (__STDC_VERSION__ >= 202311L))
+
+ #if !defined(bool) || defined(__APPLE_ALTIVEC__)
+ typedef char bool;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/unixODBC.git/commitdiff/fea53cba2925bdbacd9451ce0b9c1886692fe7c9
More information about the pld-cvs-commit
mailing list