1
0
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:
Volker Lendecke 2007-12-25 18:37:42 +01:00
parent fae533d359
commit 8b88fa53b5
2 changed files with 13 additions and 0 deletions

View File

@ -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"

View File

@ -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 {