mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	define PATH_MAX if not defined by limits.h
This commit is contained in:
		
							parent
							
								
									11130d581d
								
							
						
					
					
						commit
						59508c99b4
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -64,6 +64,7 @@ | ||||||
| #include <string.h> | #include <string.h> | ||||||
| #include <stdint.h> | #include <stdint.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
|  | #include <limits.h> | ||||||
| 
 | 
 | ||||||
| #ifndef _YOSYS_ | #ifndef _YOSYS_ | ||||||
| #  error It looks like you are trying to build Yosys without the config defines set. \ | #  error It looks like you are trying to build Yosys without the config defines set. \ | ||||||
|  | @ -100,6 +101,10 @@ | ||||||
| #  endif | #  endif | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | #ifndef PATH_MAX | ||||||
|  | #  define PATH_MAX 4096 | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
| #define PRIVATE_NAMESPACE_BEGIN  namespace { | #define PRIVATE_NAMESPACE_BEGIN  namespace { | ||||||
| #define PRIVATE_NAMESPACE_END    } | #define PRIVATE_NAMESPACE_END    } | ||||||
| #define YOSYS_NAMESPACE_BEGIN    namespace Yosys { | #define YOSYS_NAMESPACE_BEGIN    namespace Yosys { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue