From 39a5f22c36bbcce3918f3eab6948bd583209d79b Mon Sep 17 00:00:00 2001 From: Baptiste Assmann Date: Mon, 8 Aug 2016 14:12:08 +0200 Subject: [PATCH] BUILD: make proto_tcp.c compatible with musl library 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/proto_tcp.c b/src/proto_tcp.c index 4f6b3c3e1..717ba289c 100644 --- 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 #include #include