diff options
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2016-05-13 17:35:43 +0530 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2016-05-16 09:06:17 -0600 |
commit | 6eab37daf0ec1077fd612ff27ab513db20f33767 (patch) | |
tree | e5dd3c8dec3ee56edcd09b288d84e2c0327d41ef /tools/testing | |
parent | 2c6c3946c3955f96ae0d48fdac940903918207d8 (diff) | |
download | op-kernel-dev-6eab37daf0ec1077fd612ff27ab513db20f33767.zip op-kernel-dev-6eab37daf0ec1077fd612ff27ab513db20f33767.tar.gz |
tools: testing: define the _GNU_SOURCE macro
Add the macro _GNU_SOURCE, to fix CPU_ZERO and CPU_SET undefined compile
errors.
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing')
-rwxr-xr-x | tools/testing/selftests/intel_pstate/run.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh index bdaf37e..7868c10 100755 --- a/tools/testing/selftests/intel_pstate/run.sh +++ b/tools/testing/selftests/intel_pstate/run.sh @@ -32,7 +32,7 @@ EVALUATE_ONLY=0 max_cpus=$(($(nproc)-1)) # compile programs -gcc -o aperf aperf.c -lm +gcc aperf.c -Wall -D_GNU_SOURCE -o aperf -lm [ $? -ne 0 ] && echo "Problem compiling aperf.c." && exit 1 gcc -o msr msr.c -lm [ $? -ne 0 ] && echo "Problem compiling msr.c." && exit 1 |