summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-11-16 13:31:02 +0059
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-12-17 11:53:22 +0059
commit1c301f5ae2b7cc7d5c479bdb69ac62fc0d397099 (patch)
treedc2431d0743a7bfd015a25bca645c096c89a4990
parent0dbb4f8155df7852810e257de767b1f701f2fe3c (diff)
downloadextras-linaro_android_4.0.3.tar.gz
binderAddInts.cpp: Fix build with generic arm-eabi toolchainlinaro_android_4.0.3
Make it build if _GNU_SOURCE isn't defined by the compiler itself Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--tests/binder/benchmarks/binderAddInts.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/binder/benchmarks/binderAddInts.cpp b/tests/binder/benchmarks/binderAddInts.cpp
index 21b76bf2..8225e33a 100644
--- a/tests/binder/benchmarks/binderAddInts.cpp
+++ b/tests/binder/benchmarks/binderAddInts.cpp
@@ -33,6 +33,9 @@
* IPC operation. (default 1e-3)
*/
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1 // request cpu_set_t
+#endif
#include <cerrno>
#include <grp.h>
#include <iostream>