tools: testing: define the _GNU_SOURCE macro
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Fri, 13 May 2016 12:05:43 +0000 (17:35 +0530)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 16 May 2016 15:06:17 +0000 (09:06 -0600)
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>
tools/testing/selftests/intel_pstate/run.sh

index bdaf37e92684ea36cc6cad45227141ec91120460..7868c106b8b1b80c41a8af739c8def48fd378bd8 100755 (executable)
@@ -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