]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: protocol: fix some build errors on OpenBSD
authorWilly Tarreau <w@1wt.eu>
Wed, 10 Aug 2016 16:24:48 +0000 (18:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Aug 2016 17:31:58 +0000 (19:31 +0200)
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.

src/protocol.c

index 3caccb6a3f7ff6f933becd7140a3e53f296f20f6..7884ef7340982f9cb0018cc08071c42f1e61e65d 100644 (file)
@@ -10,6 +10,7 @@
  *
  */
 
+#include <sys/types.h>
 #include <sys/socket.h>
 
 #include <common/config.h>