#13 configure, prototype error for connect

open
nobody
None
5
2005-04-13
2005-04-13
François Jolin
No

running on Mac OS 10.3 (), when "make", I got

bipro-frj:~/Desktop/DLs/tsocks-1.8 root# make
gcc -fPIC -g -O2 -Wall -I. -c tsocks.c -o tsocks.o
tsocks.c: In function `connect':
tsocks.c:222: error: `__len' undeclared (first use in this function)
tsocks.c:222: error: (Each undeclared identifier is reported only once
tsocks.c:222: error: for each function it appears in.)

seems first connect prototype is wrong (line 2140):

PROTO1='int __fd, const struct sockaddr * __addr, int len'

should be

PROTO1='int __fd, const struct sockaddr * __addr, int __len'

(see '__' before 'len')

Discussion