diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2015-02-28 02:32:55 +0000 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2015-02-28 02:32:55 +0000 |
commit | 9ef0d1c145504da23797bf0b758ffb9d2c1bf4e9 (patch) | |
tree | b444d468033614b25063445128e64d15da08e2d7 /compiler-rt/lib/builtins/clear_cache.c | |
parent | 48205982a3bc815d3619857ab7654322f1f0c973 (diff) | |
download | bcm5719-llvm-9ef0d1c145504da23797bf0b758ffb9d2c1bf4e9.tar.gz bcm5719-llvm-9ef0d1c145504da23797bf0b758ffb9d2c1bf4e9.zip |
[MIPS] Add missing header for syscall
The syscall function itself is declared in <unistd.h>
Compiling compiler-rt with -Werror-implicit-function-declaration will
cause a build failure. This change fixes it.
Differential Revision: http://reviews.llvm.org/D7949
llvm-svn: 230838
Diffstat (limited to 'compiler-rt/lib/builtins/clear_cache.c')
-rw-r--r-- | compiler-rt/lib/builtins/clear_cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/builtins/clear_cache.c b/compiler-rt/lib/builtins/clear_cache.c index 8dc0fb1c590..743a8c14b01 100644 --- a/compiler-rt/lib/builtins/clear_cache.c +++ b/compiler-rt/lib/builtins/clear_cache.c @@ -25,6 +25,7 @@ #if defined(__mips__) #include <sys/cachectl.h> #include <sys/syscall.h> + #include <unistd.h> #if defined(__ANDROID__) && defined(__LP64__) /* * clear_mips_cache - Invalidates instruction cache for Mips. |