From 2337e7087667ffe8feac1f384fa1b18589aac232 Mon Sep 17 00:00:00 2001 From: pjht Date: Sun, 30 Aug 2020 09:44:51 -0500 Subject: [PATCH] Fix a warning --- libc/spawn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {