summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/driver-rs6000.c
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-10 18:48:33 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-10 18:48:33 +0000
commit293e5c85a838327341c557c063c2647e463ad631 (patch)
tree1b6bde6cc1da86539651526747e79500991c7dc4 /gcc/config/rs6000/driver-rs6000.c
parentf8be65bb3cad41ca6c58a6631e8976df2e8789b5 (diff)
downloadgcc-293e5c85a838327341c557c063c2647e463ad631.tar.gz
PR target/33042
* config/rs6000/driver-rs6000.c: Include link.h. Use ElfW instead of wordsize-specif typedef. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127348 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/driver-rs6000.c')
-rw-r--r--gcc/config/rs6000/driver-rs6000.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/config/rs6000/driver-rs6000.c b/gcc/config/rs6000/driver-rs6000.c
index 5629d6b8937..37e2d7c95d6 100644
--- a/gcc/config/rs6000/driver-rs6000.c
+++ b/gcc/config/rs6000/driver-rs6000.c
@@ -28,7 +28,7 @@ along with GCC; see the file COPYING3. If not see
#endif
#ifdef __linux__
-# include <elf.h>
+# include <link.h>
#endif
#ifdef __APPLE__
@@ -138,7 +138,7 @@ elf_platform (void)
if (fd != -1)
{
char buf[1024];
- Elf32_auxv_t *av;
+ ElfW(auxv_t) *av;
ssize_t n;
n = read (fd, buf, sizeof (buf));
@@ -146,7 +146,7 @@ elf_platform (void)
if (n > 0)
{
- for (av = (Elf32_auxv_t *) buf; av->a_type != AT_NULL; ++av)
+ for (av = (ElfW(auxv_t) *) buf; av->a_type != AT_NULL; ++av)
switch (av->a_type)
{
case AT_PLATFORM:
@@ -172,7 +172,7 @@ elf_dcachebsize (void)
if (fd != -1)
{
char buf[1024];
- Elf32_auxv_t *av;
+ ElfW(auxv_t) *av;
ssize_t n;
n = read (fd, buf, sizeof (buf));
@@ -180,7 +180,7 @@ elf_dcachebsize (void)
if (n > 0)
{
- for (av = (Elf32_auxv_t *) buf; av->a_type != AT_NULL; ++av)
+ for (av = (ElfW(auxv_t) *) buf; av->a_type != AT_NULL; ++av)
switch (av->a_type)
{
case AT_DCACHEBSIZE: