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
This commit is contained in:
Orgad Shaneh 2022-01-25 17:29:49 +02:00 committed by Quanah Gibson-Mount
parent a4ed858ecb
commit 70c9dbf93d

View file

@ -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 * ));