Solaris needs to #include <sys/kd.h> instead of <linux/kd.h>

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:09 -08:00 committed by Daniel Vetter
parent f7766d1c77
commit cf93bc8df9
3 changed files with 10 additions and 2 deletions

View File

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

View File

@ -25,7 +25,7 @@
* Damien Lespiau <damien.lespiau@intel.com>
*/
#define _GNU_SOURCE
#include "config.h"
#include <unistd.h>
#include <stdio.h>
#include <stdarg.h>
@ -33,7 +33,11 @@
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_LINUX_KD_H
#include <linux/kd.h>
#elif HAVE_SYS_KD_H
#include <sys/kd.h>
#endif
#include <errno.h>
#include <time.h>

View File

@ -34,7 +34,11 @@
#include <sys/poll.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#ifdef HAVE_LINUX_KD_H
#include <linux/kd.h>
#elif HAVE_SYS_KD_H
#include <sys/kd.h>
#endif
#include <time.h>
#include <pthread.h>