Fix mknod compilation on the FreeBSD
<sys/sysmacros.h> is linux-only FreeBSD defines makedev in sys/types.h already included in the libbb.h. Signed-off-by: Alex Samorukov <samm@os2.kiev.ua> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		
				
					committed by
					
						 Denys Vlasenko
						Denys Vlasenko
					
				
			
			
				
	
			
			
			
						parent
						
							09aba8bac4
						
					
				
				
					commit
					28759d0e95
				
			| @@ -36,7 +36,9 @@ | ||||
| //usage:       "$ mknod /dev/fd0 b 2 0\n" | ||||
| //usage:       "$ mknod -m 644 /tmp/pipe p\n" | ||||
|  | ||||
| #include <sys/sysmacros.h>  // For makedev | ||||
| #ifdef __linux__ | ||||
| # include <sys/sysmacros.h>  // For makedev | ||||
| #endif | ||||
|  | ||||
| #include "libbb.h" | ||||
| #include "libcoreutils/coreutils.h" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user