summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2012-11-04 22:46:26 +0000
committerSven Wegener <swegener@gentoo.org>2012-11-04 22:46:26 +0000
commitf8a022ee4c763800bf9b72f2bfa98fe12049bece (patch)
tree6a466c306a3155afe122d77afcb7bf0667962e6c /app-benchmarks/tiobench/files
parentRequire old version of otr for API compability, bug #438956. (diff)
downloadgentoo-2-f8a022ee4c763800bf9b72f2bfa98fe12049bece.tar.gz
gentoo-2-f8a022ee4c763800bf9b72f2bfa98fe12049bece.tar.bz2
gentoo-2-f8a022ee4c763800bf9b72f2bfa98fe12049bece.zip
Rename aligned_alloc to tio_aligned_alloc, bug #429912.
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 0x64D4CF24)
Diffstat (limited to 'app-benchmarks/tiobench/files')
-rw-r--r--app-benchmarks/tiobench/files/0.3.3-glibc-2.16.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/app-benchmarks/tiobench/files/0.3.3-glibc-2.16.patch b/app-benchmarks/tiobench/files/0.3.3-glibc-2.16.patch
new file mode 100644
index 000000000000..fed845a51d62
--- /dev/null
+++ b/app-benchmarks/tiobench/files/0.3.3-glibc-2.16.patch
@@ -0,0 +1,21 @@
+diff -Nur tiobench-0.3.3.orig/tiotest.c tiobench-0.3.3/tiotest.c
+--- tiobench-0.3.3.orig/tiotest.c 2001-03-05 02:34:00.000000000 +0000
++++ tiobench-0.3.3/tiotest.c 2012-11-04 22:44:41.695677071 +0000
+@@ -31,7 +31,7 @@
+ */
+ ArgumentOptions args;
+
+-static void * aligned_alloc(ssize_t size)
++static void * tio_aligned_alloc(ssize_t size)
+ {
+ caddr_t a;
+ a = mmap((caddr_t )0, size,
+@@ -281,7 +281,7 @@
+ 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 = tio_aligned_alloc( d->threads[i].blockSize );
+ if( d->threads[i].buffer == NULL )
+ {
+ perror("Error allocating memory");