* [PATCH] bsd-sys-queue-h-seddery: Massage `offsetof'
@ 2015-07-09 16:58 Ian Jackson
0 siblings, 0 replies; only message in thread
From: Ian Jackson @ 2015-07-09 16:58 UTC (permalink / raw)
To: xen-devel, Andrew Cooper; +Cc: Ian Jackson
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>
---
tools/include/xen-external/bsd-sys-queue-h-seddery | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/include/xen-external/bsd-sys-queue-h-seddery b/tools/include/xen-external/bsd-sys-queue-h-seddery
index 7a957e3..3f8716d 100755
--- a/tools/include/xen-external/bsd-sys-queue-h-seddery
+++ b/tools/include/xen-external/bsd-sys-queue-h-seddery
@@ -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;
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-09 16:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09 16:58 [PATCH] bsd-sys-queue-h-seddery: Massage `offsetof' Ian Jackson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).