From: Baptiste Assmann Date: Mon, 8 Aug 2016 12:12:08 +0000 (+0200) Subject: BUILD: make proto_tcp.c compatible with musl library X-Git-Tag: v1.7-dev4~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39a5f22c36bbcce3918f3eab6948bd583209d79b;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/proto_tcp.c b/src/proto_tcp.c index 4f6b3c3e15..717ba289c3 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