]> granicus.if.org Git - yasm/commitdiff
Unbreak compat-queue.h on non-BSD systems.
authorPeter Johnson <peter@tortall.net>
Wed, 21 Jun 2006 06:19:07 +0000 (06:19 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 21 Jun 2006 06:19:07 +0000 (06:19 -0000)
svn path=/branches/new-optimizer/; revision=1588

libyasm/compat-queue.h

index f9999496581f37c6c569465ff5d3df494f4409e2..5d73bd04665640f3dc1df5a362c63e9e2b30002d 100644 (file)
@@ -242,7 +242,7 @@ struct {                                                            \
        (STAILQ_EMPTY((head)) ?                                         \
                NULL :                                                  \
                ((struct type *)                                        \
-               ((char *)((head)->stqh_last) - __offsetof(struct type, field))))
+               ((char *)((head)->stqh_last) - offsetof(struct type, field))))
 
 #define        STAILQ_NEXT(elm, field) ((elm)->field.stqe_next)