[PATCH i-g-t v2 1/1] tests/intel/kms_pm_backlight: Fixed build on musl
Kamil Konieczny
kamil.konieczny at linux.intel.com
Fri Aug 23 15:57:47 UTC 2024
Fix compilation on musl by including proper POSIX header for
basename. Also while at this, sort out other headers.
v2: sorting more headers (Janusz)
Cc: Mohammed Anas <triallax at tutanota.com>
Cc: Stefano Ragni <st3r4g at protonmail.com>
Cc: Bernd Kuhls <bernd at kuhls.net>
Cc: Reagan Bohan <xbjfk.github at gmail.com>
Reported-by: Yureka <yuka at yuka.dev>
Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Reviewed-by: Janusz Krzysztofik <janusz.krzysztofik at linux.intel.com>
---
tests/intel/kms_pm_backlight.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/tests/intel/kms_pm_backlight.c b/tests/intel/kms_pm_backlight.c
index 8672afa7a..140a95bcc 100644
--- a/tests/intel/kms_pm_backlight.c
+++ b/tests/intel/kms_pm_backlight.c
@@ -35,15 +35,17 @@
* Test category: functionality test
*/
-#include "igt.h"
-#include <limits.h>
-#include <sys/types.h>
-#include <sys/stat.h>
+#include <errno.h>
#include <fcntl.h>
+#include <libgen.h> /* for POSIX basename */
+#include <limits.h>
#include <stdio.h>
-#include <errno.h>
-#include <unistd.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include <time.h>
+#include <unistd.h>
+
+#include "igt.h"
#include "igt_device.h"
#include "igt_device_scan.h"
--
2.43.0
More information about the igt-dev
mailing list