BUILD: protocol: fix some build errors on OpenBSD

Building 1.6 and above on OpenBSD 5.2 fails due to protocol.c not
including sys/types.h before sys/socket.h :

  In file included from src/protocol.c:14:
  /usr/include/sys/socket.h:162: error: expected specifier-qualifier-list before 'u_int8_t'

This fix needs to be backported to 1.6.
This commit is contained in:
Willy Tarreau 2016-08-10 18:24:48 +02:00
parent cc52274496
commit a6e3be7ae9
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@
* *
*/ */
#include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <common/config.h> #include <common/config.h>