projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc52274
)
BUILD: protocol: fix some build errors on OpenBSD
author
Willy Tarreau
<w@1wt.eu>
Wed, 10 Aug 2016 16:24:48 +0000
(18:24 +0200)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/src/protocol.c
b/src/protocol.c
index
3caccb6
..
7884ef7
100644
(file)
--- a/
src/protocol.c
+++ b/
src/protocol.c
@@
-10,6
+10,7
@@
*
*/
+#include <sys/types.h>
#include <sys/socket.h>
#include <common/config.h>