diff options
| author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-12-23 19:07:09 -0800 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-06 09:29:45 +0100 |
| commit | cf93bc8df9f5f94a0aedc8b52bad0ad4e036737c (patch) | |
| tree | af848543efbb9d7a915a05b5117cd36460e17029 /lib | |
| parent | f7766d1c77ffef757e05cbd6c6ed110cdd830045 (diff) | |
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>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/igt_kms.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 042e90e1..d0c36907 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -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> |
