xfree86: os-support: move _NEED_SYSI86 guarded block to sun_vid.c
The sun_vid.c driver seems to be the only actual consumer left, so it can be dropped from public headers and moved to sun_vid.c instead. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1414>
This commit is contained in:
		
							parent
							
								
									1073ca2b8a
								
							
						
					
					
						commit
						dee16edd2e
					
				|  | @ -51,8 +51,11 @@ | ||||||
| #include <sys/types.h>          /* get __x86 definition if not set by compiler */ | #include <sys/types.h>          /* get __x86 definition if not set by compiler */ | ||||||
| 
 | 
 | ||||||
| #if defined(__i386__) || defined(__i386) || defined(__x86) | #if defined(__i386__) || defined(__i386) || defined(__x86) | ||||||
| #define _NEED_SYSI86 | #include <sys/tss.h> | ||||||
| #endif | #include <sys/sysi86.h> | ||||||
|  | #include <sys/psw.h> | ||||||
|  | #endif /* defined(__i386__) || defined(__i386) || defined(__x86) */ | ||||||
|  | 
 | ||||||
| #include "xf86.h" | #include "xf86.h" | ||||||
| #include "xf86Priv.h" | #include "xf86Priv.h" | ||||||
| #include "xf86_OSlib.h" | #include "xf86_OSlib.h" | ||||||
|  |  | ||||||
|  | @ -93,22 +93,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| 
 | 
 | ||||||
| #if defined(_NEED_SYSI86) |  | ||||||
| #if !(defined (__sun) && defined (SVR4)) |  | ||||||
| #include <sys/immu.h> |  | ||||||
| #include <sys/region.h> |  | ||||||
| #include <sys/proc.h> |  | ||||||
| #endif |  | ||||||
| #include <sys/tss.h> |  | ||||||
| #include <sys/sysi86.h> |  | ||||||
| #if defined(SVR4) && !defined(__sun) |  | ||||||
| #include <sys/seg.h> |  | ||||||
| #endif                          /* SVR4 && !__sun */ |  | ||||||
| #if defined(__sun) && (defined (__i386__) || defined(__i386) || defined(__x86))  && defined (SVR4) |  | ||||||
| #include <sys/psw.h> |  | ||||||
| #endif |  | ||||||
| #endif                          /* _NEED_SYSI86 */ |  | ||||||
| 
 |  | ||||||
| #if !defined(__sun) || defined(HAVE_SYS_VT_H) | #if !defined(__sun) || defined(HAVE_SYS_VT_H) | ||||||
| #define HAS_USL_VTS | #define HAS_USL_VTS | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue