On 22/02/18 12:03, Roger Pau Monne wrote:
> On FreeBSD the build fails with:
>
> /root/src/xtf/include/xtf/compiler.h:13:9: error: '__section' macro redefined
>       [-Werror,-Wmacro-redefined]
> #define __section(s)          __attribute__((__section__(s)))
>         ^
> /usr/include/sys/cdefs.h:229:9: note: previous definition is here
> #define __section(x)    __attribute__((__section__(x)))
>         ^
> 1 error generated.
>
> Only define __section if it's undefined in order to prevent conflicts.
>
> Signed-off-by: Roger Pau Monné <roger....@citrix.com>

Acked and pushed.  Thanks.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to