Fix warning about undeclared __clear_cache function call.

master
Christian Jullien 2014-02-08 08:31:32 +01:00
parent d0dae7f241
commit b46f7461a3
1 changed files with 1 additions and 0 deletions

View File

@ -234,6 +234,7 @@ static void set_pages_executable(void *ptr, unsigned long length)
unsigned long old_protect;
VirtualProtect(ptr, length, PAGE_EXECUTE_READWRITE, &old_protect);
#else
extern void __clear_cache(char *beginning, char *end);
#ifndef PAGESIZE
# define PAGESIZE 4096
#endif