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>
This commit is contained in:
Alan Coopersmith 2014-12-23 19:07:11 -08:00 committed by Daniel Vetter
parent 99e6defbe7
commit f04b9dfba0
2 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,7 @@ enable_gtk_doc=no
# Checks for functions, headers, structures, etc. # Checks for functions, headers, structures, etc.
AC_HEADER_STDC 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 AC_CHECK_MEMBERS([struct sysinfo.totalram],[],[],[AC_INCLUDES_DEFAULT
#include <sys/sysinfo.h> #include <sys/sysinfo.h>
]) ])

View File

@ -65,6 +65,10 @@
#include "igt_core.h" #include "igt_core.h"
#include "igt_aux.h" #include "igt_aux.h"
#ifdef HAVE_LIBGEN_H
#include <libgen.h> /* for basename() on Solaris */
#endif
/** /**
* SECTION:igt_core * SECTION:igt_core
* @short_description: Core i-g-t testing support * @short_description: Core i-g-t testing support