mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Check for accept4 and use fallback if not present
This commit is contained in:
parent
eb4e5ed2a1
commit
3536af43ee
@ -23,7 +23,9 @@
|
||||
# define MSG_NOSIGNAL 0
|
||||
#endif
|
||||
#ifdef SOCK_CLOEXEC
|
||||
#ifndef VERSION
|
||||
#include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_ACCEPT4
|
||||
#define ACCEPT_CLOEXEC(sockfd, addr, addrlen) accept4(sockfd, addr, addrlen, SOCK_CLOEXEC)
|
||||
#else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user