aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/tools
diff options
context:
space:
mode:
authorKai Wang <kaiw@FreeBSD.org>2014-01-29 09:58:05 +0000
committerKai Wang <kaiw@FreeBSD.org>2014-01-29 09:58:05 +0000
commitd8b88105c2ccf7686552516877f541efb54fb6c8 (patch)
treeda8e6ff98d33686c8b73e4b4dc6530226b76adb8 /cddl/contrib/opensolaris/tools
parentfe938c0835673952612f6eea3ab3d75e484079ab (diff)
downloadsrc-d8b88105c2ccf7686552516877f541efb54fb6c8.tar.gz
src-d8b88105c2ccf7686552516877f541efb54fb6c8.zip
Only declare `bysz' variable under little endian archs.
Notes
Notes: svn path=/head/; revision=261259
Diffstat (limited to 'cddl/contrib/opensolaris/tools')
-rw-r--r--cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
index bff4c545063f..55ce7b2e2de5 100644
--- a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
+++ b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
@@ -935,7 +935,10 @@ static void
die_sou_create(dwarf_t *dw, Dwarf_Die str, Dwarf_Off off, tdesc_t *tdp,
int type, const char *typename)
{
- Dwarf_Unsigned sz, bysz, bitsz, bitoff, maxsz=0;
+ Dwarf_Unsigned sz, bitsz, bitoff, maxsz=0;
+#if BYTE_ORDER == _LITTLE_ENDIAN
+ Dwarf_Unsigned bysz;
+#endif
Dwarf_Die mem;
mlist_t *ml, **mlastp;
iidesc_t *ii;