diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-11-16 13:31:02 +0059 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-12-17 11:53:22 +0059 |
commit | 1c301f5ae2b7cc7d5c479bdb69ac62fc0d397099 (patch) | |
tree | dc2431d0743a7bfd015a25bca645c096c89a4990 | |
parent | 0dbb4f8155df7852810e257de767b1f701f2fe3c (diff) | |
download | extras-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.cpp | 3 |
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> |