[compiler-rt] r272051 - [scudo] trying to fix the bot: aligned_alloc is not known there; attempt 2
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 13:09:49 PDT 2016
Author: kcc
Date: Tue Jun 7 15:09:49 2016
New Revision: 272051
URL: http://llvm.org/viewvc/llvm-project?rev=272051&view=rev
Log:
[scudo] trying to fix the bot: aligned_alloc is not known there; attempt 2
Modified:
compiler-rt/trunk/test/scudo/memalign.cpp
Modified: compiler-rt/trunk/test/scudo/memalign.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/scudo/memalign.cpp?rev=272051&r1=272050&r2=272051&view=diff
==============================================================================
--- compiler-rt/trunk/test/scudo/memalign.cpp (original)
+++ compiler-rt/trunk/test/scudo/memalign.cpp Tue Jun 7 15:09:49 2016
@@ -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;
More information about the llvm-commits
mailing list