Conditionally include nlist.h in solib-legacy.c for older *BSD systems.

This commit is contained in:
Kevin Buettner 2001-03-20 02:57:42 +00:00
parent 087bb2e240
commit 486363b69b
5 changed files with 18 additions and 2 deletions

View 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

View file

@ -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

2
gdb/configure vendored
View file

@ -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 \

View 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 \

View file

@ -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