[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
> (avahi).
>
>   
This is LGPL so be aware of the implications of linking this with
your application. 
> 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
for cpukit.
> Does this need to be "mbuf" aligned or just long word
> aligned?
>
>   
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.
> Regards
>
> 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
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>