aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-12-18 14:27:57 +0000
committerMark Kettenis <kettenis@gnu.org>2004-12-18 14:27:57 +0000
commitd0ac9ef8228ce646a46e0df7e9b70228489454de (patch)
treeb6846de7c994423f72c62f997f6b6dd046bbbb4c
parent17fe2d6e138aefd5654b15de0c7ff7eef081851b (diff)
downloadgdb-d0ac9ef8228ce646a46e0df7e9b70228489454de.zip
gdb-d0ac9ef8228ce646a46e0df7e9b70228489454de.tar.gz
gdb-d0ac9ef8228ce646a46e0df7e9b70228489454de.tar.bz2
* solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
PA_SOM_ONLY isn't defined.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/solib-pa64.c8
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 87edaaa..08f288b 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 0f20a54..f18c992 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;