]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix build error on FreeBSD
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Jan 2012 14:35:52 +0000 (15:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 23 Jan 2012 14:35:52 +0000 (15:35 +0100)
Marcello Gorlani reported that commit 5e205524ad24003ecc4dbb435066aebe7ed58d95
(BUG: http: re-enable TCP quick-ack upon incomplete HTTP requests) broke build
on FreeBSD.

Moving the include lower fixes the issue. This must be backported to 1.4 too.

src/proto_http.c

index 034a752c90d9542f49b6db6ecc62a476be1b00aa..af53dda702c70ab97e4b4de9626881a7beba03b1 100644 (file)
 #include <syslog.h>
 #include <time.h>
 
-#include <netinet/tcp.h>
-
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 
+#include <netinet/tcp.h>
+
 #include <common/appsession.h>
 #include <common/base64.h>
 #include <common/compat.h>