From 555fc002d2675ef9b66c63ff1a417a287718470a Mon Sep 17 00:00:00 2001 From: gwr Date: Tue, 30 Sep 1997 21:14:30 +0000 Subject: [PATCH] Do the link.h defines only if not SVR4_SHARED_LIBS. --- gnu/dist/gdb/config/nm-nbsd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/dist/gdb/config/nm-nbsd.h b/gnu/dist/gdb/config/nm-nbsd.h index 3bb1df5a6b49..04fb832a9a3f 100644 --- a/gnu/dist/gdb/config/nm-nbsd.h +++ b/gnu/dist/gdb/config/nm-nbsd.h @@ -29,7 +29,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "solib.h" /* Support for shared libraries. */ -/* make structure definitions match up with those expected in solib.c */ +#ifndef SVR4_SHARED_LIBS +/* The NetBSD link.h structure definitions have different names + than the SunOS version, but the structures are very similar, + so we can use solib.c by defining the SunOS names. */ #define link_object sod #define lo_name sod_name #define lo_library sod_library @@ -81,3 +84,5 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define ldd d_debug #define ld_un d_un #define ld_2 d_sdt + +#endif /* SVR4_SHARED_LIBS */