summaryrefslogtreecommitdiffstats
path: root/source/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
commit620785df4e57b72471ff0315e22e0d2f28a2b1a5 (patch)
tree2b75d54ccbeec93e67a5a5b6ad77d84e69fbf7a3 /source/smbd
parent641d0968da73dca24a3ddaf93451de1200d3c09b (diff)
downloadsamba-620785df4e57b72471ff0315e22e0d2f28a2b1a5.tar.gz
samba-620785df4e57b72471ff0315e22e0d2f28a2b1a5.tar.xz
samba-620785df4e57b72471ff0315e22e0d2f28a2b1a5.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.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/utmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/utmp.c b/source/smbd/utmp.c
index e36e2aa042b..c2908e33cc1 100644
--- a/source/smbd/utmp.c
+++ b/source/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;