Comment 2 for bug 567402

Revision history for this message
Stewart Smith (stewart) wrote : Re: [Bug 567402] Re: pbxt doesn't build on debian ppc 32bit

On Tue, 20 Apr 2010 18:58:19 -0000, Paul McCullagh <email address hidden> wrote:
> So the solution may be as follows:
>
> #define IDX_CAC_READ_LOCK(i, o)
> xt_slock_rwlock_ns(&(i)->cs_lock); (void) (o);
>
> or even better:
>
> #define IDX_CAC_READ_LOCK(i, o) do {
> xt_slock_rwlock_ns(&(i)->cs_lock); (void) (o); } where (0)

latter is better.

or static inline i guess.

--
Stewart Smith