mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-11-04 10:07:04 +00:00 
			
		
		
		
	pim6d: fix Linux kernel header macro
__KERNEL_DIV_ROUND_UP isn't in older versions of linux/const.h. Rather than pull in more headers, just inline the definition. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
		
							parent
							
								
									00b0b74847
								
							
						
					
					
						commit
						beb016c8fa
					
				@ -63,7 +63,8 @@ typedef	uint32_t	if_mask;
 | 
			
		||||
#define NIFBITS (sizeof(if_mask) * 8)        /* bits per mask */
 | 
			
		||||
 | 
			
		||||
typedef struct if_set {
 | 
			
		||||
	if_mask ifs_bits[__KERNEL_DIV_ROUND_UP(IF_SETSIZE, NIFBITS)];
 | 
			
		||||
	/* __KERNEL_DIV_ROUND_UP() */
 | 
			
		||||
	if_mask ifs_bits[(IF_SETSIZE + NIFBITS - 1) / NIFBITS];
 | 
			
		||||
} if_set;
 | 
			
		||||
 | 
			
		||||
#define IF_SET(n, p)    ((p)->ifs_bits[(n)/NIFBITS] |= (1 << ((n) % NIFBITS)))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user