summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-11-26 02:17:14 +0100
committerBjoern Jacke <bj@sernet.de>2010-11-26 03:07:21 +0100
commite52ba1fb87ff57052f460246c2026604a8f63bf2 (patch)
tree29f36e7c4e045076ad47de6a7b686e5fe494bba6
parent4f27a644070ebfc5c6dcc177047eff0e492103cf (diff)
downloadsamba-e52ba1fb87ff57052f460246c2026604a8f63bf2.tar.gz
samba-e52ba1fb87ff57052f460246c2026604a8f63bf2.tar.bz2
samba-e52ba1fb87ff57052f460246c2026604a8f63bf2.zip
librpc: fix builds without IPv6 suport (HP-UX 11.00)
Kai, please check. Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Fri Nov 26 03:07:21 CET 2010 on sn-devel-104
-rw-r--r--librpc/ndr/ndr_basic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/librpc/ndr/ndr_basic.c b/librpc/ndr/ndr_basic.c
index 31a8b9de6d..96f7323bfd 100644
--- a/librpc/ndr/ndr_basic.c
+++ b/librpc/ndr/ndr_basic.c
@@ -848,6 +848,7 @@ _PUBLIC_ void ndr_print_ipv4address(struct ndr_print *ndr, const char *name,
ndr->print(ndr, "%-25s: %s", name, address);
}
+#ifdef AF_INET6
/*
pull a ipv6address
*/
@@ -903,6 +904,7 @@ _PUBLIC_ void ndr_print_ipv6address(struct ndr_print *ndr, const char *name,
ndr->print(ndr, "%-25s: %s", name, address);
}
#undef IPV6_BYTES
+#endif
_PUBLIC_ void ndr_print_struct(struct ndr_print *ndr, const char *name, const char *type)
{