> [[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]
> >I have some code which needs to compile on solaris 2.5.1 and
> >solaris 2.7. There are some minor probs with RPC code which
> >could easily be solved with some conditional compilations
> What type of problems?
> [ Perhaps it could be resolved w/o resorting to this ]
> >Is the some #define somewhere which I can use to differentiate
> >between the two OS.
> It's usually better to defien your own feature macro that
> says "FOO_WORKS_DIFFERENTLY" so you can catch all such cases
> rather than depnding on an SO define.
> Newer versions of the Sun compiler define __SunOS_5_X
> which is only marginally useful.
> Expressed in this posting are my opinions. They are in no way related
> to opinions held by my employer, Sun Microsystems.
> Statements on Sun products included here are not gospel and may
> be fiction rather than truth.
> The actual problem I am having is that svc_getargs has different
paramaters depending on which OS you are using
I COULD use
svc_getargs( transp, (int(*)(XDR*,void*))xdr_rpc_xml, data )
svc_getargs( transp, (int(*)())xdr_rpc_xml, data )
Not the best solution the world has ever seen !!!
This is all because this piece of code has been added in xdr.h
typedef bool_t (*xdrproc_t)(XDR *, void *);
Which doesn't exisist in previous versions of the same file.
Any suggestions ?
Sent via Deja.com