]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make this compile on Darwin.
authorJulian Seward <jseward@acm.org>
Tue, 27 Mar 2012 09:39:22 +0000 (09:39 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 27 Mar 2012 09:39:22 +0000 (09:39 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12464

memcheck/tests/test-plo.c

index 9ce667a2e3924623dea14cd1cb080d85348007bb..5d4da6b9f359cad179ae80c73c0935a2494136e5 100644 (file)
@@ -1,4 +1,4 @@
-#include <malloc.h>
+#include "tests/malloc.h"
 #include <stdio.h>
 #include <assert.h>
 
@@ -46,7 +46,7 @@ __attribute__((noinline)) void foo ( int x )
 int
 main(int argc, char *argv[])
 {
-    char *buf = memalign(8, 5);
+    char *buf = memalign16(5);
     buf[0] = 'a';
     buf[1] = 'b';
     buf[2] = 'c';