diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-05-15 09:42:52 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-05-15 09:42:52 +1000 |
commit | 7d3870d41f60702944e7e7ecb84b00e61335e139 (patch) | |
tree | 8b6249837bdbbb3905bb2b562d466c166c974047 /ctdb/configure.ac | |
parent | 3f3eb4f63686ff8de94a1e6927b4413795c11d48 (diff) | |
download | samba-7d3870d41f60702944e7e7ecb84b00e61335e139.tar.gz samba-7d3870d41f60702944e7e7ecb84b00e61335e139.tar.xz samba-7d3870d41f60702944e7e7ecb84b00e61335e139.zip |
AIX needs sin_len field for bind()
(This used to be ctdb commit cd6c35d4aa4f4a4cfeedf6902cda84e43d7aeba4)
Diffstat (limited to 'ctdb/configure.ac')
-rw-r--r-- | ctdb/configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ctdb/configure.ac b/ctdb/configure.ac index dd379b98cc6..e6930a68025 100644 --- a/ctdb/configure.ac +++ b/ctdb/configure.ac @@ -30,6 +30,16 @@ m4_include(libtdb.m4) m4_include(libevents.m4) m4_include(ib/config.m4) +AC_CACHE_CHECK([for sin_len in sock],ctdb_cv_HAVE_SOCK_SIN_LEN,[ +AC_TRY_COMPILE([#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/in.h>], +[struct sockaddr_in sock; sock.sin_len = sizeof(sock);], +ctdb_cv_HAVE_SOCK_SIN_LEN=yes,ctdb_cv_HAVE_SOCK_SIN_LEN=no)]) +if test x"$ctdb_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then + AC_DEFINE(HAVE_SOCK_SIN_LEN,1,[Whether the sockaddr_in struct has a sin_len property]) +fi + AC_SUBST(EXTRA_OBJ) AC_OUTPUT(Makefile) |