mirror of
https://github.com/autc04/Retro68.git
synced 2024-10-31 16:12:15 +00:00
deal with stricter default compile options for C
This commit is contained in:
parent
45d5bdd137
commit
3236f3cfbf
@ -24,6 +24,7 @@
|
||||
# endif
|
||||
|
||||
# include <stdio.h>
|
||||
# include <string.h>
|
||||
|
||||
# include "hfs.h"
|
||||
# include "hcwd.h"
|
||||
|
@ -80,6 +80,7 @@ write_file (Elf *elf, off_t size, int change_bo, size_t shnum)
|
||||
|
||||
if (elf->map_address != NULL)
|
||||
{
|
||||
#ifndef __APPLE__
|
||||
/* When using mmap we want to make sure the file content is
|
||||
really there. Only using ftruncate might mean the file is
|
||||
extended, but space isn't allocated yet. This might cause a
|
||||
@ -100,7 +101,7 @@ write_file (Elf *elf, off_t size, int change_bo, size_t shnum)
|
||||
__libelf_seterrno (ELF_E_WRITE_ERROR);
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif
|
||||
/* The file is mmaped. */
|
||||
if ((class == ELFCLASS32
|
||||
? __elf32_updatemmap (elf, change_bo, shnum)
|
||||
|
Loading…
Reference in New Issue
Block a user