mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	NETLINK_TCPDIAG and NETLINK_NFLOG aren't defined on older Linux
systems; define these conditionally.
This commit is contained in:
		
							parent
							
								
									c255c7bef7
								
							
						
					
					
						commit
						668a94a34f
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -4029,8 +4029,12 @@ init_socket(void)
 | 
			
		|||
	PyModule_AddIntConstant(m, "NETLINK_SKIP", NETLINK_SKIP);
 | 
			
		||||
	PyModule_AddIntConstant(m, "NETLINK_USERSOCK", NETLINK_USERSOCK);
 | 
			
		||||
	PyModule_AddIntConstant(m, "NETLINK_FIREWALL", NETLINK_FIREWALL);
 | 
			
		||||
#ifdef NETLINK_TCPDIAG
 | 
			
		||||
	PyModule_AddIntConstant(m, "NETLINK_TCPDIAG", NETLINK_TCPDIAG);
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef NETLINK_NFLOG
 | 
			
		||||
	PyModule_AddIntConstant(m, "NETLINK_NFLOG", NETLINK_NFLOG);
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef NETLINK_XFRM
 | 
			
		||||
	PyModule_AddIntConstant(m, "NETLINK_XFRM", NETLINK_XFRM);
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue