gcc -E linsock.c > linsock.i
Then look at linsock.i in a text editor (it'll be very large).
What you're looking at is what the compiler sees after the pre-processor has had it's turn.
What you should look for is
- whether the code for the function even exists - perhaps it was in a conditional block, or a comment
- whether the function still has the same name, perhaps a macro substitution gone wrong.