diff --git a/libc/spawn.c b/libc/spawn.c index c4534d6..81b7bbe 100644 --- a/libc/spawn.c +++ b/libc/spawn.c @@ -3,10 +3,12 @@ #include #include #include +#include +#include int posix_spawn(pid_t* pid, const char* path, const posix_spawn_file_actions_t* file_actions, const posix_spawnattr_t* attrp, char* const argv[], char* const envp[]) { - FILE* image=fopen(path,"r"); + FILE* image=fopen((char*)path,"r"); elf_header header; fread(&header,sizeof(elf_header),1,image); if (header.magic!=ELF_MAGIC) {