[compiler-rt] r230838 - [MIPS] Add missing header for syscall
Petar Jovanovic
petar.jovanovic at imgtec.com
Fri Feb 27 18:32:56 PST 2015
Author: petarj
Date: Fri Feb 27 20:32:55 2015
New Revision: 230838
URL: http://llvm.org/viewvc/llvm-project?rev=230838&view=rev
Log:
[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
Modified:
compiler-rt/trunk/lib/builtins/clear_cache.c
Modified: compiler-rt/trunk/lib/builtins/clear_cache.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/clear_cache.c?rev=230838&r1=230837&r2=230838&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/clear_cache.c (original)
+++ compiler-rt/trunk/lib/builtins/clear_cache.c Fri Feb 27 20:32:55 2015
@@ -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.
More information about the llvm-commits
mailing list