[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Undefined macro ALIGN when using CMSG_NXTHDR macro
- Date: Wed, 16 May 2007 08:25:15 -0500
- From: joel.sherrill at oarcorp.com (Joel Sherrill)
- Subject: Undefined macro ALIGN when using CMSG_NXTHDR macro
Paul Whitfield wrote:
> Hi All,
> I have some code I am looking at possibly porting to rtems
This is LGPL so be aware of the implications of linking this with
> However, the code uses recvmsg and the CMSG_NXTHDR macro.
> This results in a compile error because the ALIGN macro
> is not defined.
I am guessing that you could define it to nothing and try that.
Any guess what they are trying to align and why?
> Is this a macro that should be defined in the BSP?
If it really needs to be defined, it would not be a BSP issue, it
would be a generic architecture issue and more appropriate
> Does this need to be "mbuf" aligned or just long word
That's the question I don't know the answer to. What does the
default alignment get you? malloc returns things appropriately
aligned for the architecture.
> Paul Whitfield.
> PS: The software also uses the "poll" system call .. <sigh> ...
> The information in this e-mail is intended for the addressee only.
> Unauthorised use, copying, disclosure or distribution by anyone else
> is prohibited. Please let us know immediately if you receive this
> e-mail in error. Thank you.
> rtems-users mailing list
> rtems-users at rtems.com