openldap: fix compilation with GCC14
authorRosen Penev <rosenp@gmail.com>
Fri, 17 May 2024 04:24:53 +0000 (21:24 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 22 May 2024 00:59:57 +0000 (17:59 -0700)
Wrong pointer type.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/openldap/Makefile
libs/openldap/patches/030-gcc14.patch [new file with mode: 0644]

index 84d90b980bc933e95cb9c277bd5c83338692cb4c..2bc91098efc3ef3c6f8d38506046d458491c1ad3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openldap
 PKG_VERSION:=2.6.7
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirror.eu.oneandone.net/software/openldap/openldap-release/ \
diff --git a/libs/openldap/patches/030-gcc14.patch b/libs/openldap/patches/030-gcc14.patch
new file mode 100644 (file)
index 0000000..cfb123d
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/servers/slapd/config.c
++++ b/servers/slapd/config.c
+@@ -151,7 +151,7 @@ int config_check_vals(ConfigTable *Conf,
+       int rc, arg_user, arg_type, arg_syn, iarg;
+       unsigned uiarg;
+       long larg;
+-      size_t ularg;
++      unsigned long ularg;
+       ber_len_t barg;
+       
+       if(Conf->arg_type == ARG_IGNORED) {