mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix comparison in patch from my previous commit.
This commit is contained in:
parent
45dc7a52d2
commit
a0f96c2f9b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317554
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
||||||
socklen_t *addrlen)
|
socklen_t *addrlen)
|
||||||
{
|
{
|
||||||
-#ifdef SOCK_CLOEXEC
|
-#ifdef SOCK_CLOEXEC
|
||||||
+#if defined(SOCK_CLOEXEC) && __FreeBSD_version < 1000032
|
+#if defined(SOCK_CLOEXEC) && __FreeBSD_version > 1000032
|
||||||
return accept4(sockfd, addr, addrlen, SOCK_CLOEXEC);
|
return accept4(sockfd, addr, addrlen, SOCK_CLOEXEC);
|
||||||
#else
|
#else
|
||||||
socket_t fd = accept(sockfd, addr, addrlen);
|
socket_t fd = accept(sockfd, addr, addrlen);
|
||||||
|
|
Loading…
Add table
Reference in a new issue