Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [hpux] Fix build problem on hpux
@ 2006-03-09 18:05 Randolph Chung
  2006-03-09 19:14 ` Mark Kettenis
  0 siblings, 1 reply; 11+ messages in thread
From: Randolph Chung @ 2006-03-09 18:05 UTC (permalink / raw)
  To: gdb-patches; +Cc: John David Anglin

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

This fixes the build problem on HPUX reported recently by Dave Anglin 
(PR/2097). Thanks to Dave for debugging the problem :)

I'll check this in in a few days unless I hear objections.

randolph

[-- Attachment #2: hpcomp.diff --]
[-- Type: text/x-patch, Size: 1429 bytes --]

2005-03-09  Randolph Chung  <tausq@debian.org>

	PR gdb/2097
	* hpread.c (hpread_start_psymtab): Remove hpread_psymtab_to_symtab
	declaration.
	* config/pa/hppahpux.mt (MT_CFLAGS): Define _XOPEN_SOURCE_EXTENDED.

Index: hpread.c
===================================================================
RCS file: /cvs/src/src/gdb/hpread.c,v
retrieving revision 1.58
diff -u -p -r1.58 hpread.c
--- hpread.c	17 Dec 2005 22:34:01 -0000	1.58
+++ hpread.c	9 Mar 2006 15:28:16 -0000
@@ -2385,7 +2386,6 @@ hpread_start_psymtab (struct objfile *ob
 		      struct partial_symbol **static_syms)
 {
   int offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
-  extern void hpread_psymtab_to_symtab ();
   struct partial_symtab *result =
   start_psymtab_common (objfile, objfile->section_offsets,
 			filename, textlow, global_syms, static_syms);
Index: config/pa/hppahpux.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/hppahpux.mt,v
retrieving revision 1.7
diff -u -p -r1.7 hppahpux.mt
--- config/pa/hppahpux.mt	13 Dec 2004 04:06:16 -0000	1.7
+++ config/pa/hppahpux.mt	9 Mar 2006 15:28:16 -0000
@@ -1,4 +1,4 @@
 # Target: HP PA-RISC running hpux
-MT_CFLAGS = -DPA_SOM_ONLY=1
+MT_CFLAGS = -DPA_SOM_ONLY=1 -D_XOPEN_SOURCE_EXTENDED
 TDEPFILES= hppa-tdep.o hppa-hpux-tdep.o corelow.o somread.o hpread.o solib-som.o solib-pa64.o solib.o
 DEPRECATED_TM_FILE= tm-hppah.h

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-03-29  0:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-09 18:05 [hpux] Fix build problem on hpux Randolph Chung
2006-03-09 19:14 ` Mark Kettenis
2006-03-10  1:35   ` Randolph Chung
2006-03-10  1:48     ` John David Anglin
2006-03-10  2:33       ` Randolph Chung
2006-03-10 11:15         ` John David Anglin
2006-03-10 12:50     ` Daniel Jacobowitz
     [not found]       ` <4410EE58.1060007@tausq.org>
     [not found]         ` <20060310035929.GA12013@nevyn.them.org>
     [not found]           ` <4410FF26.40509@tausq.org>
2006-03-26  8:33             ` Randolph Chung
2006-03-28 22:29               ` Daniel Jacobowitz
2006-03-29  0:28                 ` Randolph Chung
2006-03-29  4:36                   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox