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:
aa1ea8a
)
BUILD: make proto_tcp.c compatible with musl library
author
Baptiste Assmann
<bedis9@gmail.com>
Mon, 8 Aug 2016 12:12:08 +0000
(14:12 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Mon, 8 Aug 2016 12:20:23 +0000
(14:20 +0200)
musl library expose tcp_info structure only when _GNU_SOURCE is defined.
This is required to build HAProxy on OSes relying musl such as Alpine
Linux.
src/proto_tcp.c
patch
|
blob
|
history
diff --git
a/src/proto_tcp.c
b/src/proto_tcp.c
index
4f6b3c3
..
717ba28
100644
(file)
--- a/
src/proto_tcp.c
+++ b/
src/proto_tcp.c
@@
-10,6
+10,11
@@
*
*/
+/* this is to have tcp_info defined on systems using musl
+ * library, such as Alpine Linux
+ */
+#define _GNU_SOURCE
+
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>