diff options
Diffstat (limited to 'sysdeps/generic/dl-sysdep.c')
-rw-r--r-- | sysdeps/generic/dl-sysdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c index 579054d2ed..87eac71687 100644 --- a/sysdeps/generic/dl-sysdep.c +++ b/sysdeps/generic/dl-sysdep.c @@ -20,6 +20,7 @@ Cambridge, MA 02139, USA. */ #include <elf.h> #include <sys/types.h> #include <sys/stat.h> +#include <sys/mman.h> #include <fcntl.h> #include <link.h> #include <unistd.h> @@ -126,7 +127,7 @@ _dl_sysdep_open_zero_fill (void) void * _dl_sysdep_read_whole_file (const char *file, size_t *sizep, int prot) { - void *contents; + void *result; struct stat st; int fd = __open (file, O_RDONLY); if (fd < 0) |