mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 20:31:00 +01:00
BUILD: accept4: move the socketcall declaration outside of accept4()
Gcc 4.2.4 breaks on the syscall declared inside the function, move it outside and declare it static inline.
This commit is contained in:
parent
667c905fe5
commit
7fca87fd9d
@ -46,10 +46,10 @@
|
|||||||
/* The syscall is redefined somewhere else */
|
/* The syscall is redefined somewhere else */
|
||||||
extern int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags);
|
extern int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags);
|
||||||
#elif ACCEPT4_USE_SOCKETCALL
|
#elif ACCEPT4_USE_SOCKETCALL
|
||||||
|
static inline _syscall2(int, socketcall, int, call, unsigned long *, args);
|
||||||
static int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)
|
static int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)
|
||||||
{
|
{
|
||||||
unsigned long args[4];
|
unsigned long args[4];
|
||||||
static _syscall2(int, socketcall, int, call, unsigned long *, args);
|
|
||||||
|
|
||||||
args[0] = (unsigned long)sockfd;
|
args[0] = (unsigned long)sockfd;
|
||||||
args[1] = (unsigned long)addr;
|
args[1] = (unsigned long)addr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user