Fix build on Solaris
d_type is not part of the POSIX spec unfortunately.
This commit is contained in:
		
							parent
							
								
									5bc12454fd
								
							
						
					
					
						commit
						cdb346c65e
					
				
					 3 changed files with 11 additions and 0 deletions
				
			
		|  | @ -11,6 +11,12 @@ | |||
| 
 | ||||
| #include <cstdio> | ||||
| 
 | ||||
| #ifndef HAVE_STRUCT_DIRENT_D_TYPE | ||||
| #define DT_UNKNOWN 0 | ||||
| #define DT_REG 1 | ||||
| #define DT_LNK 2 | ||||
| #define DT_DIR 3 | ||||
| #endif | ||||
| 
 | ||||
| namespace nix { | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue