aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-03-20 02:57:42 +0000
committerKevin Buettner <kevinb@redhat.com>2001-03-20 02:57:42 +0000
commit486363b69b062711ab7e542b7f5ae6d3d9f4bbde (patch)
tree938867b70c0adac938f13116bd47b7b86097b0f0 /gdb
parent087bb2e2400e97d4aec5bec747e9fcf7d5af6826 (diff)
downloadgdb-486363b69b062711ab7e542b7f5ae6d3d9f4bbde.zip
gdb-486363b69b062711ab7e542b7f5ae6d3d9f4bbde.tar.gz
gdb-486363b69b062711ab7e542b7f5ae6d3d9f4bbde.tar.bz2
Conditionally include nlist.h in solib-legacy.c for older *BSD systems.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/config.in3
-rwxr-xr-xgdb/configure2
-rw-r--r--gdb/configure.in2
-rw-r--r--gdb/solib-legacy.c6
5 files changed, 18 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 313ec32..436ae00 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2001-03-19 Kevin Buettner <kevinb@redhat.com>
+ * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
+ * configure: Regenerate.
+ * config.in: Regenerate.
+ * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
+
+2001-03-19 Kevin Buettner <kevinb@redhat.com>
+
* config/i386/i386v42mp.mh (NATDEPFILES): List all files on
same line to avoid problems with Unixware 7's make when building
a cross debugger.
diff --git a/gdb/config.in b/gdb/config.in
index db4f525..2d6e84a 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -289,6 +289,9 @@
/* Define if you have the <nl_types.h> header file. */
#undef HAVE_NL_TYPES_H
+/* Define if you have the <nlist.h> header file. */
+#undef HAVE_NLIST_H
+
/* Define if you have the <objlist.h> header file. */
#undef HAVE_OBJLIST_H
diff --git a/gdb/configure b/gdb/configure
index 33f1627..5879c1f 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -3379,7 +3379,7 @@ EOF
esac; esac
-for ac_hdr in ctype.h endian.h link.h thread_db.h proc_service.h \
+for ac_hdr in ctype.h endian.h nlist.h link.h thread_db.h proc_service.h \
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
diff --git a/gdb/configure.in b/gdb/configure.in
index f39f48f..6764b6e 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -118,7 +118,7 @@ case $host_os in solaris2.7 | solaris2.8) case "$GCC" in yes)
AC_DEFINE(_MSE_INT_H)
esac; esac
-AC_CHECK_HEADERS(ctype.h endian.h link.h thread_db.h proc_service.h \
+AC_CHECK_HEADERS(ctype.h endian.h nlist.h link.h thread_db.h proc_service.h \
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
diff --git a/gdb/solib-legacy.c b/gdb/solib-legacy.c
index e6507f2..2e32e18 100644
--- a/gdb/solib-legacy.c
+++ b/gdb/solib-legacy.c
@@ -25,6 +25,12 @@
#include "solib-svr4.h"
#ifdef HAVE_LINK_H
+
+#ifdef HAVE_NLIST_H
+/* nlist.h needs to be included before link.h on some older *BSD systems. */
+#include <nlist.h>
+#endif
+
#include <link.h>
/* Fetch (and possibly build) an appropriate link_map_offsets structure