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/lib/libdtrace/common Follow FreeBSD...



details:   https://anonhg.NetBSD.org/src/rev/1707c3316abc
branches:  trunk
changeset: 365904:1707c3316abc
user:      jkoshy <jkoshy%NetBSD.org@localhost>
date:      Mon May 02 20:09:48 2022 +0000

description:
Follow FreeBSD revision <0e15d9fbeba4> and simplify #ifdef'ed code.

This change avoids redefining 'SHN_SUNW_IGNORE' if the symbol is already
present.

diffstat:

 external/cddl/osnet/dist/lib/libdtrace/common/dt_link.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (17 lines):

diff -r e20470e17a01 -r 1707c3316abc external/cddl/osnet/dist/lib/libdtrace/common/dt_link.c
--- a/external/cddl/osnet/dist/lib/libdtrace/common/dt_link.c   Mon May 02 19:57:50 2022 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/dt_link.c   Mon May 02 20:09:48 2022 +0000
@@ -1678,11 +1678,8 @@
                         * already been processed by an earlier link
                         * invocation.
                         */
-#ifndef illumos
-#define SHN_SUNW_IGNORE        SHN_ABS
-#endif
-                       if (rsym.st_shndx != SHN_SUNW_IGNORE) {
-                               rsym.st_shndx = SHN_SUNW_IGNORE;
+                       if (rsym.st_shndx != SHN_ABS) {
+                               rsym.st_shndx = SHN_ABS;
                                (void) gelf_update_sym(data_sym, ndx, &rsym);
                        }
                }



Home | Main Index | Thread Index | Old Index