Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect accept4() on specific versions of various platforms #13173

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/config.h
Expand Up @@ -9,6 +9,8 @@
#ifndef __CONFIG_H
#define __CONFIG_H

#include <sys/param.h>

#ifdef __APPLE__
#include <fcntl.h> // for fcntl(fd, F_FULLFSYNC)
#include <AvailabilityMacros.h>
Expand Down Expand Up @@ -75,7 +77,9 @@
#endif

/* Test for accept4() */
#if defined(__linux__) || defined(OpenBSD5_7) || \
#if defined(__linux__) || \
defined(OpenBSD5_7) || \
__DragonFly_version >= 400305 || \
(__FreeBSD__ >= 10 || __FreeBSD_version >= 1000000) || \
(defined(NetBSD8_0) || __NetBSD_Version__ >= 800000000)
#define HAVE_ACCEPT4 1
Expand Down