]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: don't generate RTF_BITS constant on OS X Mavericks and beyond
authorMikio Hara <mikioh.mikioh@gmail.com>
Fri, 28 Mar 2014 04:27:14 +0000 (13:27 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 28 Mar 2014 04:27:14 +0000 (13:27 +0900)
LGTM=iant
R=iant, bradfitz
CC=golang-codereviews
https://golang.org/cl/80700044

src/pkg/syscall/mkerrors.sh

index 2d33f24194b1b4d636166f290e487d8a3e752005..7ddd4784553d6f866c4668051ec54752bff20cb0 100755 (executable)
@@ -269,6 +269,7 @@ ccflags="$@"
                $2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P)_/ ||
                $2 ~ /^SIOC/ ||
                $2 ~ /^TIOC/ ||
+               $2 !~ "RTF_BITS" &&
                $2 ~ /^(IFF|IFT|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ ||
                $2 ~ /^BIOC/ ||
                $2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||