mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									f7766d1c77
								
							
						
					
					
						commit
						cf93bc8df9
					
				@ -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>
 | 
			
		||||
		  ])
 | 
			
		||||
 | 
			
		||||
@ -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>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user