summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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