diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-12-23 19:07:11 -0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-06 09:29:45 +0100 |
commit | f04b9dfba00b724879b0310a5d1442196afcc24e (patch) | |
tree | e3bf46764244664ac3880486e658d0705e8dd5ff | |
parent | 99e6defbe79d3a41f967b55d33ce1a856914e797 (diff) |
Need to #include <libgen.h> for basename() on Solaris
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | lib/igt_core.c | 4 |
2 files changed, 5 insertions, 1 deletions
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 <sys/sysinfo.h> ]) 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 <libgen.h> /* for basename() on Solaris */ +#endif + /** * SECTION:igt_core * @short_description: Core i-g-t testing support |