On Wed, 2007-08-22 at 00:34 +0930, Dan Shearer wrote:
> A libmapi client does this:
> 
>    #include <libmapi/libmapi.h>
>    #include <stdio.h>
>      :
> 
> If instead you do this:
> 
>    #include <stdio.h>
>    #include <libmapi/libmapi.h>
>         :

libmapi client are not required to include stdio.h since it is already
included within libmapi/libmapi.h.

> /usr/local/samba/include/ndr/proto.h:77: error: expected declaration 
> specifiers or '...' \
>   before 'comparison_fn_t'

I've only encountered this issue while working on the FreeBSD build
which doesn't have comparison_fn_t. Did you also had troubles with it
under Linux?

> It looks like OpenChange maybe needs to include something else because
> if I comment out line 77 in ndr/proto.h everything works fine in libmapi
> client apps.

I've already discussed this issue with Jelmer a couple of weeks ago. I
didn't find any common replacement working both on Linux and FreeBSD.
Maybe we can instead check the type in configure.ac and add its
definition to config.h when missing...

Julien.

-- 
Julien Kerihuel
[EMAIL PROTECTED]
OpenChange Project Manager

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to