[PATCH i-g-t] tests/intel/kms_pm_rpm: use basename from libgen.h

Alyssa Ross hi at alyssa.is
Wed Sep 4 13:49:48 UTC 2024


musl only provides the libgen.h version of basename() that may modify
it's argument.  That's fine in this case, because in the one use of
basename() in this file, the buffer is never read from again.

Signed-off-by: Alyssa Ross <hi at alyssa.is>
---
 tests/intel/kms_pm_rpm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c
index 5af3e81bc..852e9cb5f 100644
--- a/tests/intel/kms_pm_rpm.c
+++ b/tests/intel/kms_pm_rpm.c
@@ -27,6 +27,7 @@
 #endif
 
 #include <dirent.h>
+#include <libgen.h>
 
 #include "config.h"
 #include "i915/gem.h"

base-commit: fc3113c8c1e99797b2d4769aaf02265be64a7589
-- 
2.45.2



More information about the igt-dev mailing list