From f04b9dfba00b724879b0310a5d1442196afcc24e Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 23 Dec 2014 19:07:11 -0800 Subject: [PATCH] Need to #include for basename() on Solaris Signed-off-by: Alan Coopersmith Signed-off-by: Daniel Vetter --- configure.ac | 2 +- lib/igt_core.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index fe460666..bee40ce3 100644 --- a/configure.ac +++ b/configure.ac @@ -53,7 +53,7 @@ enable_gtk_doc=no # Checks for functions, headers, structures, etc. AC_HEADER_STDC -AC_CHECK_HEADERS([termios.h linux/kd.h sys/kd.h]) +AC_CHECK_HEADERS([termios.h linux/kd.h sys/kd.h libgen.h]) AC_CHECK_MEMBERS([struct sysinfo.totalram],[],[],[AC_INCLUDES_DEFAULT #include ]) diff --git a/lib/igt_core.c b/lib/igt_core.c index 01fb4574..0f8a5bba 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -65,6 +65,10 @@ #include "igt_core.h" #include "igt_aux.h" +#ifdef HAVE_LIBGEN_H +#include /* for basename() on Solaris */ +#endif + /** * SECTION:igt_core * @short_description: Core i-g-t testing support