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.
This commit is contained in:
Willy Tarreau 2020-06-11 11:22:44 +02:00
parent 1385c88560
commit 0a4b0ab177
2 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include <stdio.h>
#include <signal.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>

View File

@ -11,6 +11,7 @@
*
*/
#include <sys/types.h>
#include <netinet/tcp.h>
#include <ctype.h>
#include <errno.h>