From 0a4b0ab17758a53a05f23d66b9933da8992e1708 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 11 Jun 2020 11:22:44 +0200 Subject: [PATCH] BUILD: include: add sys/types before netinet/tcp.h Apparently Cygwin requires sys/types.h before netinet/tcp.h but doesn't include it by itself, as shown here: https://github.com/haproxy/haproxy/actions/runs/131943890 This patch makes sure it's always present, which is in server.c and the SPOA example. --- contrib/spoa_example/spoa.c | 1 + src/server.c | 1 + 2 files changed, 2 insertions(+) diff --git a/contrib/spoa_example/spoa.c b/contrib/spoa_example/spoa.c index dd4a87338b..9725078154 100644 --- a/contrib/spoa_example/spoa.c +++ b/contrib/spoa_example/spoa.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/src/server.c b/src/server.c index 442756985b..1fd29046e8 100644 --- a/src/server.c +++ b/src/server.c @@ -11,6 +11,7 @@ * */ +#include #include #include #include