aboutsummaryrefslogtreecommitdiff
path: root/elf/sprof.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/sprof.c')
-rw-r--r--elf/sprof.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/sprof.c b/elf/sprof.c
index 54dfebdd5a..5c70ec0473 100644
--- a/elf/sprof.c
+++ b/elf/sprof.c
@@ -744,7 +744,7 @@ load_profdata (const char *name, struct shobj *shobj)
{
struct profdata *result;
int fd;
- struct stat st;
+ struct stat64 st;
void *addr;
uint32_t *narcsp;
size_t fromlimit;
@@ -783,7 +783,7 @@ load_profdata (const char *name, struct shobj *shobj)
/* We have found the file, now make sure it is the right one for the
data file. */
- if (fstat (fd, &st) < 0)
+ if (fstat64 (fd, &st) < 0)
{
error (0, errno, _("while stat'ing profiling data file"));
close (fd);