ndr->print = ndr_print_debug_helper;
ndr->depth = 1;
ndr->flags = 0;
+
+ /* this is a s4 hack until we build up the courage to pass
+ * this all the way down
+ */
+#if _SAMBA_BUILD_ == 4
ndr->iconv_convenience = smb_iconv_convenience_init(talloc_autofree_context(), "ASCII", "UTF-8", true);
+#endif
+
fn(ndr, name, flags, ptr);
talloc_free(ndr);
}
ndr->print = ndr_print_string_helper;
ndr->depth = 1;
ndr->flags = 0;
+
+ /* this is a s4 hack until we build up the courage to pass
+ * this all the way down
+ */
+#if _SAMBA_BUILD_ == 4
+ ndr->iconv_convenience = smb_iconv_convenience_init(talloc_autofree_context(), "ASCII", "UTF-8", true);
+#endif
+
fn(ndr, name, ptr);
ret = talloc_steal(mem_ctx, (char *)ndr->private_data);
failed: