This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Fix gdb build failure on hppa*-*-hpux* (32-bit)
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gdb-patches at soureware dot org
- Date: Mon, 4 Aug 2008 19:38:13 -0400 (EDT)
- Subject: Fix gdb build failure on hppa*-*-hpux* (32-bit)
The patch below fixes the build failure mentioned in the PR. Please
install if ok.
Thanks,
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR build/2490
* solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
defined.
Index: solib-pa64.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-pa64.c,v
retrieving revision 1.10
diff -u -3 -p -r1.10 solib-pa64.c
--- solib-pa64.c 1 Jan 2008 22:53:13 -0000 1.10
+++ solib-pa64.c 4 Aug 2008 00:38:43 -0000
@@ -46,7 +46,7 @@
/* We can build this file only when running natively on 64-bit HP/UX.
We check for that by checking for the elf_hp.h header file. */
-#ifdef HAVE_ELF_HP_H
+#if defined(HAVE_ELF_HP_H) && defined(__LP64__)
/* FIXME: kettenis/20041213: These includes should be eliminated. */
#include <dlfcn.h>