[PATCH i-g-t v12 05/11] lib/igt_aux: Include local igt procps header for Android
Jeevaka Prabu Badrappan
jeevaka.badrappan at intel.com
Mon Jun 2 19:25:09 UTC 2025
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.
Signed-off-by: Jeevaka Prabu Badrappan <jeevaka.badrappan at 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