OSDN Git Service

* solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
authorkettenis <kettenis>
Sat, 18 Dec 2004 14:27:57 +0000 (14:27 +0000)
committerkettenis <kettenis>
Sat, 18 Dec 2004 14:27:57 +0000 (14:27 +0000)
PA_SOM_ONLY isn't defined.

gdb/solib-pa64.c

index 0f20a54..f18c992 100644 (file)
@@ -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"
 /* 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;