--- samba-4.0.0alpha9/librpc/ndr/libndr.h.old1 2009-12-01 16:22:25.766598000 +0800 +++ samba-4.0.0alpha9/librpc/ndr/libndr.h 2009-12-01 16:29:55.166390000 +0800 @@ -433,6 +433,12 @@ struct ndr_token_list **list, const void *key, uint32_t value); + +#ifdef __SunOS +/* comparison_fn_t is not defined on Solaris */ +typedef int (*comparison_fn_t)(const void *, const void *); +#endif + enum ndr_err_code ndr_token_retrieve_cmp_fn(struct ndr_token_list **list, const void *key, uint32_t *v, comparison_fn_t _cmp_fn, bool _remove_tok); enum ndr_err_code ndr_token_retrieve(struct ndr_token_list **list, const void *key, uint32_t *v); uint32_t ndr_token_peek(struct ndr_token_list **list, const void *key);