new compile problem on linux-2.4.27-pre4 and his solution
Subsystems (2)
Hi this happens on pre4 and not happen on pre3
tcp_input.c: In function `tcp_rcv_space_adjust':
tcp_input.c:479: structure has no member named sk_rcvbuf' tcp_input.c:480: structure has no member named sk_rcvbuf' make[3]: *** [tcp_input.o] Error 1
make bzImage error !
find . -exec grep "sk_rcvbuf" {} \; -print
results:
#define sk_rcvbuf rcvbuf./include/net/sctp/compat.h
newsk->sk_rcvbuf = oldsk->sk_rcvbuf;
./net/sctp/socket.c
if (sk->sk_rcvbuf < SCTP_DEFAULT_MINWINDOW)
asoc->rwnd = sk->sk_rcvbuf;
min_t(__u32, (asoc->base.sk->sk_rcvbuf >> 1),
asoc->pmtu)))
./net/sctp/associola.c
if (space > sk->sk_rcvbuf)
sk->sk_rcvbuf = space;./net/ipv4/tcp_input.c
So #define sk_rcvbuf rcvbuf
and I feel free to do this and resolve the compile problem.
net/ipv4/tcp_input.c 2004-05-31 18:54:11.000000000 +0100 renamed from net/ipv4/tcp_input.c.orig 2004-05-31 18:45:06.000000000 +0100 +2 -2
@@ -476,8 +476,8 @@ 16 + sizeof(struct sk_buff)); space *= rcvmem; space = min(space, sysctl_tcp_rmem[2]); - if (space > sk->sk_rcvbuf) - sk->sk_rcvbuf = space; + if (space > sk->rcvbuf) + sk->rcvbuf = space; } }
thanks,
Sergio M. B.