mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX.
This commit is contained in:
		
							parent
							
								
									b3a579223e
								
							
						
					
					
						commit
						80e1c43ddf
					
				
					 3 changed files with 10 additions and 0 deletions
				
			
		|  | @ -293,6 +293,11 @@ The module :mod:`socket` exports the following constants and functions: | ||||||
|    TIPC related constants, matching the ones exported by the C socket API. See |    TIPC related constants, matching the ones exported by the C socket API. See | ||||||
|    the TIPC documentation for more information. |    the TIPC documentation for more information. | ||||||
| 
 | 
 | ||||||
|  | .. data:: AF_LINK | ||||||
|  | 
 | ||||||
|  |   Availability: BSD, OSX. | ||||||
|  | 
 | ||||||
|  |   .. versionadded:: 3.4 | ||||||
| 
 | 
 | ||||||
| .. data:: has_ipv6 | .. data:: has_ipv6 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -99,6 +99,8 @@ Core and Builtins | ||||||
| Library | Library | ||||||
| ------- | ------- | ||||||
| 
 | 
 | ||||||
|  | - Issue #17996: socket module now exposes AF_LINK constant on BSD and OSX. | ||||||
|  | 
 | ||||||
| - Issue #17900: Allowed pickling of recursive OrderedDicts.  Decreased pickled | - Issue #17900: Allowed pickling of recursive OrderedDicts.  Decreased pickled | ||||||
|   size and pickling time. |   size and pickling time. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -5658,6 +5658,9 @@ PyInit__socket(void) | ||||||
|     /* Alias to emulate 4.4BSD */ |     /* Alias to emulate 4.4BSD */ | ||||||
|     PyModule_AddIntMacro(m, AF_ROUTE); |     PyModule_AddIntMacro(m, AF_ROUTE); | ||||||
| #endif | #endif | ||||||
|  | #ifdef AF_LINK | ||||||
|  |     PyModule_AddIntMacro(m, AF_LINK); | ||||||
|  | #endif | ||||||
| #ifdef AF_ASH | #ifdef AF_ASH | ||||||
|     /* Ash */ |     /* Ash */ | ||||||
|     PyModule_AddIntMacro(m, AF_ASH); |     PyModule_AddIntMacro(m, AF_ASH); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Giampaolo Rodola'
						Giampaolo Rodola'