News:

SimuTranslator
Make Simutrans speak your language.

[bug r2923] Building network.cc fails on TCP_NODELAY not declared in this scope

Started by sanna, December 05, 2009, 11:06:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sanna

Trying to build r2923 I get the following error:

dataobj/network.cc: In function 'void network_add_client(SOCKET)':
dataobj/network.cc:195: error: 'TCP_NODELAY' was not declared in this scope
dataobj/network.cc: At global scope:
dataobj/network.cc:189: warning: 'our_client_id' defined but not used


Grepping for TCP_NODELAY in the rest of the files yield only the match dataobj/network.cc:195. If this constant is defined in an external lib, then that lib is evidently not found.

System: debian/squeeze, gcc 4.3.5


isidoro

I don't have the source at hand, but probably #include <netinet/tcp.h> is missing from network.cc