This commit is contained in:
Andy Pan 2025-05-13 21:57:42 +08:00 committed by GitHub
commit 666ed929b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,8 @@
#ifndef __CONFIG_H
#define __CONFIG_H
#include <sys/param.h>
#ifdef __APPLE__
#include <fcntl.h> // for fcntl(fd, F_FULLFSYNC)
#include <AvailabilityMacros.h>
@ -85,7 +87,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