FreeRTOS_Sockets.c and FreeRTOS_TCP_WIN.c do not compile when ipconfigUSE_TCP is disabled in FreeRTOSIPConfig.h.
Suggested fixes:
Add #if (ipconfigUSE_TCP == 1)/#endif guards around the following code:
FreeRTOS_Sockets.c: Declaration and implementation of prvSockopt_so_buffer().
FreeRTOS_TCP_WIN.c: All source code.