summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_begin.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdw/dwarf_begin.c')
-rw-r--r--libdw/dwarf_begin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdw/dwarf_begin.c b/libdw/dwarf_begin.c
index d04e5b9f..19d16e5c 100644
--- a/libdw/dwarf_begin.c
+++ b/libdw/dwarf_begin.c
@@ -73,9 +73,9 @@ dwarf_begin (int fd, Dwarf_Cmd cmd)
if (elf == NULL)
{
/* Test why the `elf_begin" call failed. */
- struct stat64 st;
+ struct stat st;
- if (fstat64 (fd, &st) == 0 && ! S_ISREG (st.st_mode))
+ if (fstat (fd, &st) == 0 && ! S_ISREG (st.st_mode))
__libdw_seterrno (DWARF_E_NO_REGFILE);
else if (errno == EBADF)
__libdw_seterrno (DWARF_E_INVALID_FILE);