fix for Windows (#69)
* fix for Windows * fix condition * make condition only on Windows
This commit is contained in:
		
				
					committed by
					
						
						Benjamin Sergeant
					
				
			
			
				
	
			
			
			
						parent
						
							5f42a07d0d
						
					
				
				
					commit
					be2aee3354
				
			@@ -73,7 +73,7 @@ namespace ix
 | 
			
		||||
 | 
			
		||||
        struct timeval timeout;
 | 
			
		||||
        timeout.tv_sec = timeoutMs / 1000;
 | 
			
		||||
        timeout.tv_usec = (timeoutMs < 1000) ? 0 : 1000 * (timeoutMs % 1000);
 | 
			
		||||
        timeout.tv_usec = 1000 * (timeoutMs % 1000);
 | 
			
		||||
 | 
			
		||||
        // Compute the highest fd.
 | 
			
		||||
        int sockfd = _sockfd;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user