Re: [PATCH] tools: testing: define the _GNU_SOURCE macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/13/2016 06:05 AM, Muhammad Falak R Wani wrote:
> Add the macro _GNU_SOURCE, so that compilation does not terminate.

What error are you seeing? Could you please send the compilation
error log.

thanks,
-- Shuah
> 
> Signed-off-by: Muhammad Falak R Wani <falakreyaz@xxxxxxxxx>
> ---
>  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
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux