krb5_plugin: Fix developer build with newer heimdal system library
[gd/samba-autobuild/.git] / nsswitch / krb5_plugin / winbind_krb5_locator.c
index a31c08223708d45491770433ead1bfc3a870679b..d08cdf72a5993ec57ef5c38ceeddcd05841b24f6 100644 (file)
@@ -412,7 +412,11 @@ const krb5plugin_service_locate_ftable SMB_KRB5_LOCATOR_SYMBOL_NAME = {
        .minor_version  = 0,
        .init           = smb_krb5_locator_init,
        .fini           = smb_krb5_locator_close,
+#ifdef KRB5_PLUGIN_LOCATE_VERSION_2
+       .old_lookup     = smb_krb5_locator_lookup,
+#else
        .lookup = smb_krb5_locator_lookup,
+#endif
 };
 
 #endif