Is it in LIBS: ? If you have a bsdsocket.library in libs. Then run the command version bsdsocket.library and it doesn't show V4 or above , then that will be the issue.
Bsdsocket.library is part of the TCP/IP stack. It’s the main component to start it. You will probably not find this on Aminet.net as it’s technically it’s attached to a TCP/IP stack such as Roadshow, MiamiDX etc..