librpc: fix builds without IPv6 suport (HP-UX 11.00)
[ira/wip.git] / librpc / ndr / ndr_basic.c
index 31a8b9de6dc5fcfb5c4dfe66021268df8e154171..96f7323bfd90d08d296bc0485e023803b6a63cdb 100644 (file)
@@ -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)
 {