Skip to contentSkip to conversation

bsd-sys-queue-h-seddery: Massage `offsetof'

PATCH New Ian Jackson 1 participant 1 message Jul 9, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bsd-sys-queue-h-seddery: Massage `offsetof'

For some reason BSD's queue.h uses `__offsetof'. It expects it to work just like offsetof. So use offsetof.

---
 tools/include/xen-external/bsd-sys-queue-h-seddery |    2 ++
 1 file changed, 2 insertions(+)
tools/include/xen-external/bsd-sys-queue-h-seddery +2 -0
index 7a957e3..3f8716d 100755
@@ -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;
Signature · 1 line
1.7.10.4