Make sure krb5_principal_get_num_comp is identified as present for Heimdal build
authorAlexander Bokovoy <ab@samba.org>
Mon, 23 Apr 2012 12:01:07 +0000 (15:01 +0300)
committerSimo Sorce <idra@samba.org>
Mon, 23 Apr 2012 20:39:59 +0000 (16:39 -0400)
Common wrappers for MIT / Heimdal use krb5_principal_get_num_comp() to replace krb5_princ_size
but rely on krb5_principal_get_num_comp() identified by the build. As we know it exists in Heimdal,
define it for waf build.

Signed-off-by: Simo Sorce <idra@samba.org>
source4/heimdal_build/wscript_configure

index 5e53fbea59987ea1167244a9a0282e7595ccc90c..e64128f44abcf01fec1aa4cfa72daa3241d48d19 100644 (file)
@@ -146,6 +146,7 @@ conf.define('HAVE_ENCTYPE_ARCFOUR_HMAC', 1)
 conf.define('HAVE_KRB5_PDU_NONE_DECL', 1)
 conf.define('HAVE_ENCTYPE_AES128_CTS_HMAC_SHA1_96', 1)
 conf.define('HAVE_ENCTYPE_AES256_CTS_HMAC_SHA1_96', 1)
+conf.define('HAVE_KRB5_KRB5_PRINCIPAL_GET_NUM_COMP', 1)
 
 heimdal_includedirs = []
 heimdal_libdirs = []