[PATCH i-g-t v12 05/11] lib/igt_aux: Include local igt procps header for Android

Kamil Konieczny kamil.konieczny at linux.intel.com
Tue Jun 3 15:39:55 UTC 2025


Hi Jeevaka,
On 2025-06-02 at 19:25:09 +0000, Jeevaka Prabu Badrappan wrote:
> As procps is not available in Android, added local stub procps header
> to build igt for Android. Inclusion of libproc2/pids.h is now
> conditional, based on the HAVE_LIBPROC2 definition, ensuring that it
> is only included when the library is available.

imho no need for explanation, so 2nd sentence could be deleted.
I guess that neither libprocps nor libproc2 are available on
Android.

> 
> Signed-off-by: Jeevaka Prabu Badrappan <jeevaka.badrappan at intel.com>

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

> ---
>  lib/igt_aux.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/igt_aux.c b/lib/igt_aux.c
> index 2905824a5..83809e770 100644
> --- a/lib/igt_aux.c
> +++ b/lib/igt_aux.c
> @@ -55,8 +55,12 @@
>  
>  #ifdef HAVE_LIBPROCPS
>  #  include <proc/readproc.h>
> -#else
> +#elif HAVE_LIBPROC2
>  #  include <libproc2/pids.h>
> +#else
> +#  ifdef ANDROID
> +#    include "android/procps.h"
> +#  endif
>  #endif
>  
>  #include <dirent.h>
> -- 
> 2.49.0
> 


More information about the igt-dev mailing list