Avoid including link.h.

It's not available on Android. We only use this header to find out if _DYNAMIC
is present; declaring it "extern void*" does the trick.

llvm-svn: 153431
This commit is contained in:
Evgeniy Stepanov 2012-03-26 09:48:41 +00:00
parent 1fd5dbc140
commit 4cc2631c7d
1 changed files with 2 additions and 1 deletions
compiler-rt/lib/asan

View File

@ -25,7 +25,6 @@
#include <sys/syscall.h>
#include <sys/types.h>
#include <fcntl.h>
#include <link.h>
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
@ -36,6 +35,8 @@
#include <sys/ucontext.h>
#endif
extern "C" void* _DYNAMIC;
namespace __asan {
void *AsanDoesNotSupportStaticLinkage() {