From 70c9dbf93da6d21b5055954a603e08ed82b4322e Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 25 Jan 2022 17:29:49 +0200 Subject: [PATCH] ITS#9790 Fix build with old GCC Versions 4.1 and 4.3 show the following error: In file included from ../../include/lutil.h:21, from passwd.c:60: ../../include/ac/socket.h:247: error: redefinition of typedef 'Sockaddr' ../../include/ldap_pvt.h:188: error: previous declaration of 'Sockaddr' was here --- include/ldap_pvt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ldap_pvt.h b/include/ldap_pvt.h index 27a5afd235..ba6ec152c6 100644 --- a/include/ldap_pvt.h +++ b/include/ldap_pvt.h @@ -185,11 +185,11 @@ ldap_pvt_get_hname LDAP_P(( #define LDAP_IPADDRLEN sizeof("IP=255.255.255.255:65336") #endif -typedef union Sockaddr Sockaddr; +union Sockaddr; LDAP_F (void) ldap_pvt_sockaddrstr LDAP_P(( - Sockaddr *sa, + union Sockaddr *sa, struct berval * ));