[LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition ANDROID with __ANDROID__

Petr Vorel pvorel@suse.cz
Thu Apr 11 19:46:38 CEST 2019


Hi,

> Replace the incorrect definition of ANDROID with __ANDROID__.

> +++ b/testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c
> @@ -25,7 +25,7 @@
>  #include "tst_test.h"
>  #include "lapi/syscalls.h"

> -#ifndef ANDROID
> +#ifndef __ANDROID__

Simple grep in AOSP tree would be for this change (and I'd personally prefer it as well)
I'd kindly ask android devs which one is correct :). BTW ANDROID was added by Steve.

$ cgrep '#if.* __ANDROID__' |wc -l
405

$ cgrep '#if.* ANDROID[^_]' |wc -l
22

Kind regards,
Petr


More information about the ltp mailing list