|
@@ -1102,7 +1102,7 @@ build_variable_from_file_contents (location_t loc,
|
|
error_at (loc, "failed to open %qs: %m", file);
|
|
error_at (loc, "failed to open %qs: %m", file);
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- char *contents;
|
|
|
|
|
|
+ void *contents;
|
|
|
|
|
|
contents = mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
|
|
contents = mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
|
|
if (contents == NULL)
|
|
if (contents == NULL)
|
|
@@ -1110,7 +1110,7 @@ build_variable_from_file_contents (location_t loc,
|
|
else
|
|
else
|
|
{
|
|
{
|
|
var = build_string_variable (loc, name_seed,
|
|
var = build_string_variable (loc, name_seed,
|
|
- contents, st.st_size);
|
|
|
|
|
|
+ (char *) contents, st.st_size);
|
|
pushdecl (var);
|
|
pushdecl (var);
|
|
munmap (contents, st.st_size);
|
|
munmap (contents, st.st_size);
|
|
}
|
|
}
|