config/udev: Include header <sys/sysmacros.h> to use major/minor
glibc 2.25 has dropped sys/sysmacros.h from sys/types.h, so add
it explicitly in config/udev.c.
This is similar to the commit 84e3b96b53
Signed-off-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
			
			
This commit is contained in:
		
							parent
							
								
									fbdd4d679a
								
							
						
					
					
						commit
						82f8cf8990
					
				| 
						 | 
					@ -39,6 +39,10 @@
 | 
				
			||||||
#include "globals.h"
 | 
					#include "globals.h"
 | 
				
			||||||
#include "systemd-logind.h"
 | 
					#include "systemd-logind.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef HAVE_SYS_SYSMACROS_H
 | 
				
			||||||
 | 
					#include <sys/sysmacros.h>
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define UDEV_XKB_PROP_KEY "xkb"
 | 
					#define UDEV_XKB_PROP_KEY "xkb"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define LOG_PROPERTY(path, prop, val)                                   \
 | 
					#define LOG_PROPERTY(path, prop, val)                                   \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -506,4 +506,7 @@
 | 
				
			||||||
/* Have epoll_create1() */
 | 
					/* Have epoll_create1() */
 | 
				
			||||||
#undef HAVE_EPOLL_CREATE1
 | 
					#undef HAVE_EPOLL_CREATE1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* Have <sys/sysmacros.h> header */
 | 
				
			||||||
 | 
					#undef HAVE_SYS_SYSMACROS_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif /* _DIX_CONFIG_H_ */
 | 
					#endif /* _DIX_CONFIG_H_ */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue