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 | |
parent | 2c6c3946c3955f96ae0d48fdac940903918207d8 (diff) | |
download | linux-6eab37daf0ec1077fd612ff27ab513db20f33767.tar.bz2 |
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>
-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 bdaf37e92684..7868c106b8b1 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 |