summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-06-07 20:09:49 +0000
committerKostya Serebryany <kcc@google.com>2016-06-07 20:09:49 +0000
commit8aa0d7332a89c15b64f679f0a543d6d2fa7075c8 (patch)
treedcec71a9ffef7b6a47c7e03cf0c6730768794681
parenta11d578b4bc8cae9da98b222a2e1e78efc658eee (diff)
downloadbcm5719-llvm-8aa0d7332a89c15b64f679f0a543d6d2fa7075c8.tar.gz
bcm5719-llvm-8aa0d7332a89c15b64f679f0a543d6d2fa7075c8.zip
[scudo] trying to fix the bot: aligned_alloc is not known there; attempt 2
llvm-svn: 272051
-rw-r--r--compiler-rt/test/scudo/memalign.cpp5
1 files changed, 3 insertions, 2 deletions
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 <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;
OpenPOWER on IntegriCloud