tcp: Fix build error if IPV6 is not selected
authorTushar Behera <tushar.behera@linaro.org>
Wed, 26 Mar 2014 09:57:05 +0000 (15:27 +0530)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 26 Mar 2014 17:44:48 +0000 (10:44 -0700)
commit7c0084dc990637bc6cc4eeccf9870dc834749220
tree9914d542917758b53804d793b8a6c4582b267873
parent4a7ff82758858f77328574519f144e554513e6ba
tcp: Fix build error if IPV6 is not selected

If CONFIG_IPV6=m is selected, we are getting following build errors.

net/built-in.o: In function `tcp_is_local6':
net/ipv4/tcp.c:3261: undefined reference to `rt6_lookup'

Making the code conditional upon only CONFIG_IPV6=y fixes this issue.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
CC: John Stultz <john.stultz@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
net/ipv4/tcp.c