diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-12-18 14:27:57 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-12-18 14:27:57 +0000 |
commit | cc9661fc83e101932b0cdfa780e89695a3e79374 (patch) | |
tree | 6c7c18b882ad8443e0ed48142b9fc92f6ca45efe | |
parent | 0273cdab1963964931d2afd8014c9d03590fd7bc (diff) | |
download | gdb-cc9661fc83e101932b0cdfa780e89695a3e79374.tar.gz |
* solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
PA_SOM_ONLY isn't defined.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/solib-pa64.c | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 87edaaae875..08f288bceeb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-12-18 Mark Kettenis <kettenis@gnu.org> + * solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if + PA_SOM_ONLY isn't defined. + * somread.c: Include "solib-som.h". (som_symfile_init, som_new_init, som_symfile_read, som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove diff --git a/gdb/solib-pa64.c b/gdb/solib-pa64.c index 0f20a544f25..f18c992301b 100644 --- a/gdb/solib-pa64.c +++ b/gdb/solib-pa64.c @@ -31,9 +31,6 @@ same functionality in all their libraries! */ #include "defs.h" -#include <dlfcn.h> -#include <elf.h> -#include <elf_hp.h> #include "symtab.h" #include "bfd.h" #include "symfile.h" @@ -51,6 +48,11 @@ /* If we are building for a SOM-only target, then we don't need this. */ #ifndef PA_SOM_ONLY +/* FIXME: kettenis/20041213: These includes should be eliminated. */ +#include <dlfcn.h> +#include <elf.h> +#include <elf_hp.h> + struct lm_info { struct load_module_desc desc; CORE_ADDR desc_addr; |