[OpenAFS-devel] -current, offsetof and irix

chas williams chas@cmf.nrl.navy.mil
Fri, 25 Jan 2002 11:24:11 -0500


In message <200201242019.PAA14440@pepsi-one.mit.edu>,Nickolai Zeldovich writes:
>Probably something like this would work equally well:
>  #define rx_AckDataSize(nAcks) (3 + nAcks + offsetof(struct rx_ackPacket, ack
>s[0]))

the irix compiler likes this a bit better.