Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/tools/ctf/cvt for the endian macros...
details: https://anonhg.NetBSD.org/src/rev/81a6c57c03ad
branches: trunk
changeset: 340764:81a6c57c03ad
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 29 20:43:16 2015 +0000
description:
for the endian macros don't use the _ names, Darwin does not define them.
diffstat:
external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c | 4 ++--
external/cddl/osnet/dist/tools/ctf/cvt/output.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r a43822ff9c97 -r 81a6c57c03ad external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c Tue Sep 29 20:31:43 2015 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c Tue Sep 29 20:43:16 2015 +0000
@@ -952,7 +952,7 @@
int type, const char *typename)
{
Dwarf_Unsigned sz, bitsz, bitoff, maxsz=0;
-#if BYTE_ORDER == _LITTLE_ENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
Dwarf_Unsigned bysz;
#endif
Dwarf_Die mem;
@@ -1027,7 +1027,7 @@
ml->ml_size = tdesc_bitsize(ml->ml_type);
if (die_unsigned(dw, mem, DW_AT_bit_offset, &bitoff, 0)) {
-#if BYTE_ORDER == _BIG_ENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
ml->ml_offset += bitoff;
#else
/*
diff -r a43822ff9c97 -r 81a6c57c03ad external/cddl/osnet/dist/tools/ctf/cvt/output.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/output.c Tue Sep 29 20:31:43 2015 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/output.c Tue Sep 29 20:43:16 2015 +0000
@@ -755,7 +755,7 @@
elfterminate(curname, "Cannot write");
if (gelf_getehdr(elf, &ehdr)) {
-#if BYTE_ORDER == _BIG_ENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
byteorder = ELFDATA2MSB;
#else
byteorder = ELFDATA2LSB;
Home |
Main Index |
Thread Index |
Old Index