From a0f96c2f9bf40df16f695b80fbf07382d392036c Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Mon, 6 May 2013 22:07:11 +0000 Subject: [PATCH] Fix comparison in patch from my previous commit. --- comms/openobex/files/patch-lib_cloexec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comms/openobex/files/patch-lib_cloexec.h b/comms/openobex/files/patch-lib_cloexec.h index 32305701a14a..d3c12f2b8229 100644 --- a/comms/openobex/files/patch-lib_cloexec.h +++ b/comms/openobex/files/patch-lib_cloexec.h @@ -13,7 +13,7 @@ socklen_t *addrlen) { -#ifdef SOCK_CLOEXEC -+#if defined(SOCK_CLOEXEC) && __FreeBSD_version < 1000032 ++#if defined(SOCK_CLOEXEC) && __FreeBSD_version > 1000032 return accept4(sockfd, addr, addrlen, SOCK_CLOEXEC); #else socket_t fd = accept(sockfd, addr, addrlen);