blob: 4055f6198fa79a0595a245369cd88e7c48b1ee4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Thu, 18 Oct 2012 14:25:50 +0200
Subject: [PATCH] rename aligned_alloc to avoid conflicting with global
definitions
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
tiotest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tiotest.c b/tiotest.c
index 6407d70252bf..611fb76f9635 100644
--- a/tiotest.c
+++ b/tiotest.c
@@ -31,7 +31,7 @@ static const char* versionStr = "tiotest v0.3.3 (C) 1999-2000 Mika Kuoppala <mik
*/
ArgumentOptions args;
-static void * aligned_alloc(ssize_t size)
+static void * _aligned_alloc(ssize_t size)
{
caddr_t a;
a = mmap((caddr_t )0, size,
@@ -284,7 +284,7 @@ void initialize_test( ThreadTest *d )
pthread_attr_setscope(&(d->threads[i].thread_attr),
PTHREAD_SCOPE_SYSTEM);
- d->threads[i].buffer = aligned_alloc( d->threads[i].blockSize );
+ d->threads[i].buffer = _aligned_alloc( d->threads[i].blockSize );
if( d->threads[i].buffer == NULL )
{
perror("Error allocating memory");
|