diff options
author | Kostya Serebryany <kcc@google.com> | 2016-06-07 20:09:49 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-06-07 20:09:49 +0000 |
commit | d694ebbb5cfa4373ff67f8f1a1cf392576a023fa (patch) | |
tree | 2a61bb754f1937e08b2132f1f87eb58798fd071d /test/scudo | |
parent | 3c3bb841bf7be4c9b361c5bbdcddf145d7de921a (diff) |
[scudo] trying to fix the bot: aligned_alloc is not known there; attempt 2
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@272051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/scudo')
-rw-r--r-- | test/scudo/memalign.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/scudo/memalign.cpp b/test/scudo/memalign.cpp index 9cbd67e74..df5c4e11e 100644 --- a/test/scudo/memalign.cpp +++ b/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 <assert.h> #include <malloc.h> #include <stdlib.h> #include <string.h> +// 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; |