bsd-sys-queue-h-seddery: Massage `offsetof'
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 9 Jul 2015 17:06:02 +0000 (18:06 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 15 Jul 2015 10:22:52 +0000 (11:22 +0100)
For some reason BSD's queue.h uses `__offsetof'.  It expects it to
work just like offsetof.  So use offsetof.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/include/xen-external/bsd-sys-queue-h-seddery

index 7a957e3a108f4685deadcfb30f3bd1b46fa17299..3f8716d9ff6004f75b24262e646b3e76e3738583 100755 (executable)
@@ -69,4 +69,6 @@ s/\b struct \s+ type \b/type/xg;
 
 s,^\#include.*sys/cdefs.*,/* $& */,xg;
 
+s,\b __offsetof \b ,offsetof,xg;
+
 s/\b( NULL )/0/xg;