| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 4/6] xfsprogs: avoid use of si_tid in struct xlog_split_item |
| From: | Theodore Ts'o <tytso@xxxxxxx> |
| Date: | Sun, 26 Jul 2015 08:20:53 -0400 |
| Cc: | Theodore Ts'o <tytso@xxxxxxx>, fstests@xxxxxxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=ZQpJxix3qKrI4e7yEe17Kdda5D1RLd7U/JK0MZfWQmc=; b=SYfr32QJRuJBzyVecFA/Lgf8ODMWZtKU+K5hHFimideTWVemw/+Omxssb9G4FrXa+/A6QDFkgKXqYIZJnRFVje0nifkerEMZ00aD0kz/QKmEtmTLCuMIuIKAUQEcAIq3pE5Mi+9m/o6/U9LpWBwuNzZTLyoxKrQgrbScKKxGWqI=; |
| In-reply-to: | <1437913255-7524-1-git-send-email-tytso@xxxxxxx> |
| References: | <1437913255-7524-1-git-send-email-tytso@xxxxxxx> |
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@xxxxxxx>
---
logprint/log_misc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/logprint/log_misc.c b/logprint/log_misc.c
index c9286c6..c0a5c97 100644
--- a/logprint/log_misc.c
+++ b/logprint/log_misc.c
@@ -76,7 +76,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;
@@ -161,7 +161,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;
@@ -183,7 +183,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;
}
--
2.3.0
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/6] xfsprogs: pull in libgen.h to get prototype for basename(), Theodore Ts'o |
|---|---|
| Next by Date: | [PATCH 01/10] xfsprogs: don't install internal header files, Christoph Hellwig |
| Previous by Thread: | Re: [PATCH 2/6] xfsprogs: pull in libgen.h to get prototype for basename(), Christoph Hellwig |
| Next by Thread: | Re: [PATCH 4/6] xfsprogs: avoid use of si_tid in struct xlog_split_item, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |