Replaced _POSIX_PATH_MAX with its value, 255, because HP-UX didn't
have this POSIX-required symbol. ???
This commit is contained in:
		
							parent
							
								
									faa08159d0
								
							
						
					
					
						commit
						e945b99adf
					
				|  | @ -178,11 +178,13 @@ int set_cloexec(int fd, int val) | |||
| 
 | ||||
| /* Posix rules: If PATH_MAX is defined, it's the length of longest path.
 | ||||
| ** Otherwise, _POSIX_PATH_MAX = 255, and is a lower bound on said length. | ||||
| ** I'm writing out 255 as a literal because HP-UX isn't finding  | ||||
| ** _POSIX_PATH_MAX. | ||||
| */ | ||||
| #ifdef PATH_MAX | ||||
| #define scsh_path_max (PATH_MAX) | ||||
| #else | ||||
| #define scsh_path_max (_POSIX_PATH_MAX) | ||||
| #define scsh_path_max (255) | ||||
| #endif | ||||
| 
 | ||||
| /* Simple-minded POSIX version. */ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 shivers
						shivers