mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Host SerNet-AIX has __ss_family instead of ss_family in sockaddr_storage
(This used to be commit e33286f4a6
)
This commit is contained in:
parent
fae533d359
commit
8b88fa53b5
@ -3042,6 +3042,15 @@ if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl AIX 5.3.0.0
|
||||
AC_TRY_COMPILE([#include <sys/socket.h>],[
|
||||
struct sockaddr_storage s; s.__ss_family = 0],
|
||||
samba_cv_have_aix_sockaddr_storage=yes,samba_cv_have_aix_sockaddr_storage=no)
|
||||
|
||||
if test x"$samba_cv_have_aix_sockaddr_storage" = x"yes"; then
|
||||
AC_DEFINE(HAVE_AIX_SOCKADDR_STORAGE, 1, [Whether struct sockaddr_storage has __sa_family])
|
||||
fi
|
||||
|
||||
if test $iface = no; then
|
||||
AC_CACHE_CHECK([for iface AIX],samba_cv_HAVE_IFACE_AIX,[
|
||||
SAVE_CPPFLAGS="$CPPFLAGS"
|
||||
|
@ -233,6 +233,10 @@ typedef unsigned short int sa_family_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_AIX_SOCKADDR_STORAGE
|
||||
#define ss_family __ss_family
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRUCT_ADDRINFO
|
||||
#define HAVE_STRUCT_ADDRINFO
|
||||
struct addrinfo {
|
||||
|
Loading…
Reference in New Issue
Block a user