mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-06 21:50:17 +00:00
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.
This commit is contained in:
parent
aa1ea8a9ee
commit
39a5f22c36
@ -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 <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user