summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2007-10-19 08:14:12 -0500
committerJeremy Allison <jra@samba.org>2007-10-19 13:09:26 -0700
commit80b7bcb5fbc98964014b5c8082a626aef24c5feb (patch)
treea9dc3c8114c9719140d8f83b01de5c6795b8684a /source3/smbd
parent61c4666a897fc85b0eb41e60dcbeb78272bfe5cf (diff)
downloadsamba-80b7bcb5fbc98964014b5c8082a626aef24c5feb.tar.gz
samba-80b7bcb5fbc98964014b5c8082a626aef24c5feb.tar.bz2
samba-80b7bcb5fbc98964014b5c8082a626aef24c5feb.zip
Add test for "struct in6_addr" to the HAVE_IPV6 configure test.
Also make use of "if defined(HAVE_IPV6)" rather than testing for AF_INET6 since this is not sufficient on HP-UX 11.11 to ensure a working IPv6 implementation. (This used to be commit 620785df4e57b72471ff0315e22e0d2f28a2b1a5)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/utmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/utmp.c b/source3/smbd/utmp.c
index e36e2aa042..c2908e33cc 100644
--- a/source3/smbd/utmp.c
+++ b/source3/smbd/utmp.c
@@ -525,7 +525,7 @@ static bool sys_utmp_fill(struct utmp *u,
#if defined(HAVE_UT_UT_HOST)
utmp_strcpy(u->ut_host, hostname, sizeof(u->ut_host));
#endif
-#if defined(AF_INET6) && defined(HAVE_UT_UT_ADDR_V6)
+#if defined(HAVE_IPV6) && defined(HAVE_UT_UT_ADDR_V6)
memset(&u->ut_addr_v6, '\0', sizeof(u->ut_addr_v6));
if (ip_addr_str) {
struct in6_addr addr;