summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/test/scudo/memalign.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/scudo/memalign.cpp b/compiler-rt/test/scudo/memalign.cpp
index df5c4e11ebb..951d1aade6e 100644
--- a/compiler-rt/test/scudo/memalign.cpp
+++ b/compiler-rt/test/scudo/memalign.cpp
@@ -11,7 +11,7 @@
#include <string.h>
// Sometimes the headers may not have this...
-extern void *aligned_alloc (size_t alignment, size_t size);
+extern "C" void *aligned_alloc (size_t alignment, size_t size);
int main(int argc, char **argv)
{
OpenPOWER on IntegriCloud