Check for accept4 and use fallback if not present

This commit is contained in:
Martin 2017-03-03 17:30:58 +01:00
parent eb4e5ed2a1
commit 3536af43ee

View File

@ -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