* dwarf2read.c (struct filenames): Change internal "struct file"

to "struct fileinfo" to avoid conflict with "struct file" in
	<sys/file.h> on HPUX and Solaris.
This commit is contained in:
Fred Fish 1996-07-20 18:33:27 +00:00
parent efd14e4595
commit 9422fadb91
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
* dwarf2read.c (struct filenames): Change internal "struct file"
to "struct fileinfo" to avoid conflict with "struct file" in
<sys/file.h> on HPUX and Solaris.
Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
* gdbtk.tcl (delete_expr): Unset corresponding element of

View File

@ -2658,7 +2658,7 @@ dwarf_attr (die, name)
struct filenames
{
int num_files;
struct file
struct fileinfo
{
char *name;
unsigned int dir;
@ -2759,7 +2759,7 @@ dwarf_decode_lines (offset, abfd)
if ((files.num_files % FILE_ALLOC_CHUNK) == 0)
{
files.files = xrealloc (files.files,
(files.num_files + FILE_ALLOC_CHUNK) * sizeof (struct file));
(files.num_files + FILE_ALLOC_CHUNK) * sizeof (struct fileinfo));
}
files.files[files.num_files].name = cur_file;
files.files[files.num_files].dir = read_unsigned_leb128 (abfd,
@ -2805,7 +2805,7 @@ dwarf_decode_lines (offset, abfd)
{
files.files = xrealloc (files.files,
(files.num_files + FILE_ALLOC_CHUNK)
* sizeof (struct file));
* sizeof (struct fileinfo));
}
files.files[files.num_files].name = cur_file;
files.files[files.num_files].dir = read_unsigned_leb128 (