Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1400737

[PATCH] tools: testing: define the _GNU_SOURCE macro

From Muhammad Falak R Wani <falakreyaz@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] tools: testing: define the _GNU_SOURCE macro
Date 2016-05-13 14:10 +0200
Message-ID <ryk4O-2Yo-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Add the macro _GNU_SOURCE, so that compilation does not terminate.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
---
 tools/testing/selftests/intel_pstate/run.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
1.9.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] tools: testing: define the _GNU_SOURCE macro Muhammad Falak R Wani <falakreyaz@gmail.com> - 2016-05-13 14:10 +0200
  Re: [PATCH] tools: testing: define the _GNU_SOURCE macro Shuah Khan <shuahkh@osg.samsung.com> - 2016-05-16 15:30 +0200
    Re: [PATCH] tools: testing: define the _GNU_SOURCE macro Muhammad Falak R Wani <falakreyaz@gmail.com> - 2016-05-16 16:10 +0200
      Re: [PATCH] tools: testing: define the _GNU_SOURCE macro Shuah Khan <shuahkh@osg.samsung.com> - 2016-05-16 18:20 +0200

csiph-web