mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Fix unit-test build error on ARM64
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
		
							parent
							
								
									a057accb59
								
							
						
					
					
						commit
						c646e514db
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -873,7 +873,8 @@ func getNlink(path string) (uint64, error) {
 | 
			
		|||
	if !ok {
 | 
			
		||||
		return 0, fmt.Errorf("expected type *syscall.Stat_t, got %t", stat.Sys())
 | 
			
		||||
	}
 | 
			
		||||
	return statT.Nlink, nil
 | 
			
		||||
	// We need this conversion on ARM64
 | 
			
		||||
	return uint64(statT.Nlink), nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func getInode(path string) (uint64, error) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue