From 8aa0d7332a89c15b64f679f0a543d6d2fa7075c8 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Tue, 7 Jun 2016 20:09:49 +0000 Subject: [scudo] trying to fix the bot: aligned_alloc is not known there; attempt 2 llvm-svn: 272051 --- compiler-rt/test/scudo/memalign.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compiler-rt/test/scudo/memalign.cpp') diff --git a/compiler-rt/test/scudo/memalign.cpp b/compiler-rt/test/scudo/memalign.cpp index 9cbd67e747c..df5c4e11ebb 100644 --- a/compiler-rt/test/scudo/memalign.cpp +++ b/compiler-rt/test/scudo/memalign.cpp @@ -5,13 +5,14 @@ // Tests that the various aligned allocation functions work as intended. Also // tests for the condition where the alignment is not a power of 2. -#define __USE_ISOC11 // for aligned_alloc - #include #include #include #include +// Sometimes the headers may not have this... +extern void *aligned_alloc (size_t alignment, size_t size); + int main(int argc, char **argv) { void *p; -- cgit v1.2.3