mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-05 02:49:01 +00:00
BUILD: listener: fix recent accept4() again
Recent commit 4448925
("BUILD/MINOR: listener: remove a glibc warning on accept4()")
broke accept4() on some systems because the glibc's version may now conflict with
the local one.
This commit is contained in:
parent
abf08d9365
commit
2317976daa
@ -41,7 +41,7 @@
|
||||
#define SOCK_NONBLOCK O_NONBLOCK
|
||||
#endif
|
||||
|
||||
#if defined(USE_MY_ACCEPT4) || !defined(SYS_ACCEPT4)
|
||||
#if defined(USE_MY_ACCEPT4) || (!defined(SYS_ACCEPT4) && !defined(__NR_accept4))
|
||||
#if defined(CONFIG_HAP_LINUX_VSYSCALL) && defined(__linux__) && defined(__i386__)
|
||||
/* The syscall is redefined somewhere else */
|
||||
extern int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags);
|
||||
|
Loading…
Reference in New Issue
Block a user