Conditionally include nlist.h in solib-legacy.c for older *BSD systems.
authorKevin Buettner <kevinb@redhat.com>
Tue, 20 Mar 2001 02:57:42 +0000 (02:57 +0000)
committerKevin Buettner <kevinb@redhat.com>
Tue, 20 Mar 2001 02:57:42 +0000 (02:57 +0000)
gdb/ChangeLog
gdb/config.in
gdb/configure
gdb/configure.in
gdb/solib-legacy.c

index 313ec321850b1b11e8f76f2b3a71b74637d0c7ce..436ae00e5120d76b6cce83f517c325ed33e1b009 100644 (file)
@@ -1,3 +1,10 @@
+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
index db4f52595ff28b942846910406a390d1dcd009ff..2d6e84a0fa008eca628bbdea9ab780b014d71302 100644 (file)
 /* 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
 
index 33f1627e32d1ac872ed9a080be48a00eabe16341..5879c1f15d8644e33ca715e57d7fd053b1b1006d 100755 (executable)
@@ -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 \
index f39f48fe911a7db399ae34e8cf7cb4a82f06f77d..6764b6edbf6747e2cf1f3b07e8d22e957f25d499 100644 (file)
@@ -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 \
index e6507f20e4001d930def2174401ef1c6b909b266..2e32e187f0ad47dc906e8ce7e4cecdf7baa9da2f 100644 (file)
 #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