wmcdplay: Build on the Hurd.
Fails to build from source on GNU/Hurd due to inclusion of a linux-specific header <linux/cdrom.h>. Instead include <sys/cdrom.h>. Patch by Samuel Thibault <sthibault@debian.org> [1], which fixes Debian bug [1] http://sources.debian.net/src/wmcdplay/1.0beta1-13/debian/patches/fix_hurd_ftbfs.patch/ [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647964
This commit is contained in:
		
							parent
							
								
									7132ad5e81
								
							
						
					
					
						commit
						a16e508465
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -30,7 +30,12 @@
 | 
				
			||||||
#include <sys/stat.h>
 | 
					#include <sys/stat.h>
 | 
				
			||||||
#include <fcntl.h>
 | 
					#include <fcntl.h>
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
 | 
					#ifdef __linux__
 | 
				
			||||||
#include <linux/cdrom.h>
 | 
					#include <linux/cdrom.h>
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					#ifdef __GNU__
 | 
				
			||||||
 | 
					#include <sys/cdrom.h>
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// CD status values
 | 
					// CD status values
 | 
				
			||||||
#define ssData     0
 | 
					#define ssData     0
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue