Just got this while cross-compiling : tcploop.c: In function 'tcp_recv': tcploop.c:444:48: error: 'INT_MAX' undeclared (first use in this function) tcploop.c:444:48: note: each undeclared identifier is reported only once for each function it appears in