This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix compilation of solib-pa64.c on HP-UX 10.20


This fixes the build on hppa2.0-hp-hpux10.20 for me.  In the long run
we should try to get rid of these platform-specific headers, but for
now this will do.

Committed as obvious,

Mark

Index: ChangeLog
from  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.

Index: solib-pa64.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-pa64.c,v
retrieving revision 1.2
diff -u -p -r1.2 solib-pa64.c
--- solib-pa64.c 9 Dec 2004 17:58:04 -0000 1.2
+++ solib-pa64.c 18 Dec 2004 14:25:11 -0000
@@ -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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]