[PATCH] ndr: Fix ndr_basic.c build for non-IPv6 systems
Kai Blin
kai at samba.org
Sun Nov 7 02:12:01 MST 2010
---
librpc/ndr/ndr_basic.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/librpc/ndr/ndr_basic.c b/librpc/ndr/ndr_basic.c
index 31a8b9d..750144f 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 HAVE_IPV6
/*
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 /*HAVE_IPV6*/
_PUBLIC_ void ndr_print_struct(struct ndr_print *ndr, const char *name, const char *type)
{
--
1.7.0.4
--------------000409090302070801010404--
More information about the samba-technical
mailing list