]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: avoid use of si_tid in struct xlog_split_item
authorTheodore Ts'o <tytso@mit.edu>
Mon, 3 Aug 2015 00:16:48 +0000 (10:16 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 3 Aug 2015 00:16:48 +0000 (10:16 +1000)
In Android's bionic libc (as well as the Linux kernel's
include/uapi/asm-generic/siginfo.h), si_tid is a #define to provide
backwards compatibility for the timerid in the siginfo structure.
This breaks the compile of logprint/log_misc.c.  Change this to be
si_xtid in order to avoid a namespace collision

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
logprint/log_misc.c

index fd306797306cbc0868e958f78637e1354ef9fe64..7eb9a607f4393cac6a06f0fd6f0014b9489992a9 100644 (file)
@@ -78,7 +78,7 @@ char *trans_type[] = {
 typedef struct xlog_split_item {
        struct xlog_split_item  *si_next;
        struct xlog_split_item  *si_prev;
-       xlog_tid_t              si_tid;
+       xlog_tid_t              si_xtid;
        int                     si_skip;
 } xlog_split_item_t;
 
@@ -163,7 +163,7 @@ xlog_print_add_to_trans(xlog_tid_t  tid,
     xlog_split_item_t *item;
 
     item         = (xlog_split_item_t *)calloc(sizeof(xlog_split_item_t), 1);
-    item->si_tid  = tid;
+    item->si_xtid  = tid;
     item->si_skip = skip;
     item->si_next = split_list;
     item->si_prev = NULL;
@@ -185,7 +185,7 @@ xlog_print_find_tid(xlog_tid_t tid, uint was_cont)
            return 0;
     }
     while (listp) {
-       if (listp->si_tid == tid)
+       if (listp->si_xtid == tid)
            break;
        listp = listp->si_next;
     }