Skip to content

Commit a2bad71

Browse files
Pull up following revision(s) (requested by ozaki-r in ticket #1969):
external/cddl/osnet/dist/tools/ctf/cvt/fixup_tdescs.c: revision 1.8 external/cddl/osnet/dist/tools/ctf/cvt/fixup_tdescs.c: revision 1.9 external/cddl/osnet/dist/tools/ctf/cvt/ctfconvert.c: revision 1.7 PR/59659: Ryota Ozaki: Make the tool version behave the same way as the native. ctfconvert: supply more HAVE_NBTOOL_CONFIG_H PR toolchain/59659
1 parent 5e3f888 commit a2bad71

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

external/cddl/osnet/dist/tools/ctf/cvt/ctfconvert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ usage(void)
6868
static void
6969
terminate_cleanup(void)
7070
{
71-
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
71+
#if !defined(__FreeBSD__) && !(defined(__NetBSD__) || HAVE_NBTOOL_CONFIG_H)
7272
if (!outfile) {
7373
fprintf(stderr, "Removing %s\n", infile);
7474
unlink(infile);

external/cddl/osnet/dist/tools/ctf/cvt/fixup_tdescs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ fix_small_cpu_struct(tdata_t *td, size_t ptrsize)
277277
lml->ml_next = cpum;
278278
}
279279

280-
#ifdef __NetBSD__
280+
#if defined(__NetBSD__) || HAVE_NBTOOL_CONFIG_H
281281

282282
/*
283283
* XXX: A crude hack to bring down the number of types for a
@@ -328,13 +328,13 @@ fix_kill_attr(tdata_t *td, size_t ptrsize)
328328
fix_kill_attr_tab, NULL, NULL, NULL);
329329
}
330330

331-
#endif /* __NetBSD__ */
331+
#endif /* __NetBSD__ || HAVE_NBTOOL_CONFIG_H */
332332

333333
void
334334
cvt_fixups(tdata_t *td, size_t ptrsize)
335335
{
336336
fix_small_cpu_struct(td, ptrsize);
337-
#ifdef __NetBSD__
337+
#if defined(__NetBSD__) || HAVE_NBTOOL_CONFIG_H
338338
fix_kill_attr(td, ptrsize);
339339
#endif
340340
}

0 commit comments

Comments
 (0)