forked from OSchip/llvm-project
[asan] Fix one more test on Android.
This change makes it pass both on libstdc++ and libc++-based toolchains. The error was: error: function-like macro '__GLIBC_PREREQ' is not defined ^ llvm-svn: 335936
This commit is contained in:
parent
59ef3dbbc6
commit
e40ae2e3a2
|
@ -1,12 +1,14 @@
|
|||
// RUN: %clangxx -O2 %s -o %t && %run %t 2>&1 | FileCheck %s
|
||||
|
||||
// XFAIL: android
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#if !defined(__GLIBC_PREREQ)
|
||||
#define __GLIBC_PREREQ(a, b) 0
|
||||
#endif
|
||||
|
||||
// getauxval() used instead of sysconf() in GetPageSize() is defined starting
|
||||
// glbc version 2.16.
|
||||
#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 16)
|
||||
#if __GLIBC_PREREQ(2, 16)
|
||||
extern "C" long sysconf(int name) {
|
||||
fprintf(stderr, "sysconf wrapper called\n");
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue