summaryrefslogtreecommitdiff
path: root/libc/elf/sprof.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/elf/sprof.c')
-rw-r--r--libc/elf/sprof.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/elf/sprof.c b/libc/elf/sprof.c
index 54dfebdd5..60f310f47 100644
--- a/libc/elf/sprof.c
+++ b/libc/elf/sprof.c
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <stdint.h>
#include <ldsodefs.h>
#include <sys/gmon.h>
#include <sys/gmon_out.h>
@@ -744,7 +745,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 +784,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);