]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CONTRIB: tcploop: add limits.h to fix build issue with some compilers
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Dec 2016 07:02:21 +0000 (08:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 17 Dec 2016 13:27:30 +0000 (14:27 +0100)
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

contrib/tcploop/tcploop.c

index a2ab59e76e42a8ae4412b515f6789eb2ebd2ed95..033481150f6f84fec3acbc423273ed13d90dc6ec 100644 (file)
@@ -39,6 +39,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <netdb.h>
 #include <poll.h>
 #include <signal.h>