From owner-svn-ports-all@FreeBSD.ORG Tue Apr 16 18:12:03 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 30252232; Tue, 16 Apr 2013 18:12:03 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 2295FD54; Tue, 16 Apr 2013 18:12:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3GIC3oh052159; Tue, 16 Apr 2013 18:12:03 GMT (envelope-from madpilot@svn.freebsd.org) Received: (from madpilot@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3GIC2KJ052157; Tue, 16 Apr 2013 18:12:02 GMT (envelope-from madpilot@svn.freebsd.org) Message-Id: <201304161812.r3GIC2KJ052157@svn.freebsd.org> From: Guido Falsi Date: Tue, 16 Apr 2013 18:12:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r315874 - head/comms/openobex/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Apr 2013 18:12:03 -0000 Author: madpilot Date: Tue Apr 16 18:12:02 2013 New Revision: 315874 URL: http://svnweb.freebsd.org/changeset/ports/315874 Log: - Fix runtime problem on CURRENT after r248534 Reviewed by: jilles Feature safe: yes Added: head/comms/openobex/files/patch-lib_cloexec.h (contents, props changed) Added: head/comms/openobex/files/patch-lib_cloexec.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/openobex/files/patch-lib_cloexec.h Tue Apr 16 18:12:02 2013 (r315874) @@ -0,0 +1,19 @@ +--- lib/cloexec.h.orig 2012-03-26 20:25:19.000000000 +0200 ++++ lib/cloexec.h 2013-04-11 16:12:55.161482749 +0200 +@@ -22,6 +22,7 @@ + #ifndef _WIN32 + #include + #include ++#include + #include + static __inline void fcntl_cloexec(socket_t fd) + { +@@ -55,7 +56,7 @@ + static __inline socket_t accept_cloexec(socket_t sockfd, struct sockaddr *addr, + socklen_t *addrlen) + { +-#ifdef SOCK_CLOEXEC ++#if defined(SOCK_CLOEXEC) && !defined(__FreeBSD__) + return accept4(sockfd, addr, addrlen, SOCK_CLOEXEC); + #else + socket_t fd = accept(sockfd, addr, addrlen);