diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-03-20 02:57:42 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-03-20 02:57:42 +0000 |
commit | 486363b69b062711ab7e542b7f5ae6d3d9f4bbde (patch) | |
tree | 938867b70c0adac938f13116bd47b7b86097b0f0 /gdb/solib-legacy.c | |
parent | 087bb2e2400e97d4aec5bec747e9fcf7d5af6826 (diff) | |
download | gdb-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/solib-legacy.c')
-rw-r--r-- | gdb/solib-legacy.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 |