Fix comparison in patch from my previous commit.

This commit is contained in:
Guido Falsi 2013-05-06 22:07:11 +00:00
parent 45dc7a52d2
commit a0f96c2f9b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317554

View file

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