mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	fix the curses module build failure on FreeBSD, reported in SF #740234.
This commit is contained in:
		
							parent
							
								
									7e902b27e0
								
							
						
					
					
						commit
						1a90117880
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -12,6 +12,21 @@
 | 
			
		|||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef __FreeBSD__
 | 
			
		||||
/*
 | 
			
		||||
** On FreeBSD, [n]curses.h and stdlib.h/wchar.h use different guards
 | 
			
		||||
** against multiple definition of wchar_t and wint_t.
 | 
			
		||||
*/
 | 
			
		||||
#ifdef	_XOPEN_SOURCE_EXTENDED
 | 
			
		||||
#ifndef _WCHAR_T
 | 
			
		||||
#define _WCHAR_T
 | 
			
		||||
#endif
 | 
			
		||||
#ifndef _WINT_T
 | 
			
		||||
#define _WINT_T
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_NCURSES_H
 | 
			
		||||
#include <ncurses.h>
 | 
			
		||||
#else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue