From owner-svn-ports-head@FreeBSD.ORG Tue May 5 11:35:57 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B63C0FA7; Tue, 5 May 2015 11:35:57 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A222C14D1; Tue, 5 May 2015 11:35:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t45BZvOU030694; Tue, 5 May 2015 11:35:57 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t45BZvXH030693; Tue, 5 May 2015 11:35:57 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201505051135.t45BZvXH030693@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 5 May 2015 11:35:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r385468 - head/comms/usbmuxd/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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2015 11:35:57 -0000 Author: jbeich Date: Tue May 5 11:35:57 2015 New Revision: 385468 URL: https://svnweb.freebsd.org/changeset/ports/385468 Log: comms/usbmuxd: unbreak build on 10.2R and 11.0C Try to autodetect ppoll(2) instead of hardcoding the list of platforms lacking it thus using fallback. GitHub: libimobiledevice/usbmuxd#36 PR: 199545 Reported by: pkg-fallout Approved by: maintainer timeout (2 weeks) Added: head/comms/usbmuxd/files/ head/comms/usbmuxd/files/patch-ppoll (contents, props changed) Added: head/comms/usbmuxd/files/patch-ppoll ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/usbmuxd/files/patch-ppoll Tue May 5 11:35:57 2015 (r385468) @@ -0,0 +1,25 @@ +diff --git configure.ac configure.ac +index 6c2481a..d204ba0 100644 +--- configure.ac ++++ configure.ac +@@ -96,6 +96,7 @@ AC_TYPE_UINT8_T + AC_FUNC_MALLOC + AC_FUNC_REALLOC + AC_CHECK_FUNCS([strcasecmp strdup strerror strndup stpcpy]) ++AC_CHECK_FUNCS([ppoll]) + + # Check for operating system + AC_MSG_CHECKING([whether to enable WIN32 build settings]) +diff --git src/main.c src/main.c +index 2e4439c..cfe6acc 100644 +--- src/main.c ++++ src/main.c +@@ -159,7 +159,7 @@ static void set_signal_handlers(void) + sigaction(SIGUSR2, &sa, NULL); + } + +-#if defined(__FreeBSD__) || defined(__APPLE__) ++#ifndef HAVE_PPOLL + static int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask) + { + int ready;