File tiotest-aligned-alloc.diff of Package tiobench

Index: tiobench-0.3.3/tiotest.c
===================================================================
--- tiobench-0.3.3.orig/tiotest.c
+++ tiobench-0.3.3/tiotest.c
@@ -30,9 +30,9 @@ static const char* versionStr = "tiotest
    in here from threads, be sure to protect it with mutexes.
 */
 ArgumentOptions args;
 
-static void * aligned_alloc(ssize_t size)
+static void * my_aligned_alloc(ssize_t size)
 {
 	caddr_t a;
 	a = mmap((caddr_t )0, size, 
 	         PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
@@ -280,9 +280,9 @@ 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 = my_aligned_alloc( d->threads[i].blockSize );
 		if( d->threads[i].buffer == NULL )
 		{
 			perror("Error allocating memory");
 			exit(-1);