소스 검색

x/net/ipv4: fix build on older darwin kernels

A few adjustments for test cases will come in a following CL.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/179760044
Mikio Hara 11 년 전
부모
커밋
724ab9af50
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ipv4/sys_darwin.go

+ 2 - 2
ipv4/sys_darwin.go

@@ -43,8 +43,8 @@ func init() {
 	}
 	var i int
 	for i = range osver {
-		if osver[i] != '.' {
-			continue
+		if osver[i] == '.' {
+			break
 		}
 	}
 	// The IP_PKTINFO and protocol-independent multicast API were