From owner-svn-ports-head@freebsd.org Sat Sep 26 13:14:34 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 646753FE828; Sat, 26 Sep 2020 13:14:34 +0000 (UTC) (envelope-from vanilla@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bz8Q21lKPz4bCv; Sat, 26 Sep 2020 13:14:34 +0000 (UTC) (envelope-from vanilla@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1EE572490D; Sat, 26 Sep 2020 13:14:34 +0000 (UTC) (envelope-from vanilla@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08QDEYB8014540; Sat, 26 Sep 2020 13:14:34 GMT (envelope-from vanilla@FreeBSD.org) Received: (from vanilla@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08QDEXXU014538; Sat, 26 Sep 2020 13:14:33 GMT (envelope-from vanilla@FreeBSD.org) Message-Id: <202009261314.08QDEXXU014538@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: vanilla set sender to vanilla@FreeBSD.org using -f From: "Vanilla I. Shu" Date: Sat, 26 Sep 2020 13:14:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r550182 - head/devel/pecl-swoole/files X-SVN-Group: ports-head X-SVN-Commit-Author: vanilla X-SVN-Commit-Paths: head/devel/pecl-swoole/files X-SVN-Commit-Revision: 550182 X-SVN-Commit-Repository: ports 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.33 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: Sat, 26 Sep 2020 13:14:34 -0000 Author: vanilla Date: Sat Sep 26 13:14:33 2020 New Revision: 550182 URL: https://svnweb.freebsd.org/changeset/ports/550182 Log: Fix compliation with libressl. PR: 249535 Submitted by: dave at jetcafe dot org Added: head/devel/pecl-swoole/files/patch-src_protocol_dtls.cc (contents, props changed) Modified: head/devel/pecl-swoole/files/patch-config.m4 Modified: head/devel/pecl-swoole/files/patch-config.m4 ============================================================================== --- head/devel/pecl-swoole/files/patch-config.m4 Sat Sep 26 13:10:25 2020 (r550181) +++ head/devel/pecl-swoole/files/patch-config.m4 Sat Sep 26 13:14:33 2020 (r550182) @@ -1,6 +1,6 @@ ---- config.m4.orig 2019-06-14 08:30:12 UTC +--- config.m4.orig 2020-08-30 04:51:37 UTC +++ config.m4 -@@ -296,7 +296,7 @@ if test "$PHP_SWOOLE" != "no"; then +@@ -268,7 +268,7 @@ if test "$PHP_SWOOLE" != "no"; then AC_CHECK_LIB(c, poll, AC_DEFINE(HAVE_POLL, 1, [have poll])) AC_CHECK_LIB(c, sendfile, AC_DEFINE(HAVE_SENDFILE, 1, [have sendfile])) AC_CHECK_LIB(c, kqueue, AC_DEFINE(HAVE_KQUEUE, 1, [have kqueue])) Added: head/devel/pecl-swoole/files/patch-src_protocol_dtls.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pecl-swoole/files/patch-src_protocol_dtls.cc Sat Sep 26 13:14:33 2020 (r550182) @@ -0,0 +1,29 @@ +--- src/protocol/dtls.cc.orig 2020-08-30 04:51:37 UTC ++++ src/protocol/dtls.cc +@@ -73,13 +73,17 @@ long BIO_ctrl(BIO *b, int cmd, long lval, void *ptrval + case BIO_CTRL_DGRAM_GET_FALLBACK_MTU: + retval = 1500; + break; ++#ifdef BIO_CTRL_DGRAM_GET_MTU_OVERHEAD + case BIO_CTRL_DGRAM_GET_MTU_OVERHEAD: + retval = 96; // random guess + break; ++#endif ++#ifdef BIO_CTRL_DGRAM_SET_PEEK_MODE + case BIO_CTRL_DGRAM_SET_PEEK_MODE: + ((Session *) BIO_get_data(b))->peek_mode = !!lval; + retval = 1; + break; ++#endif + case BIO_CTRL_PUSH: + case BIO_CTRL_POP: + case BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT: +@@ -119,7 +123,7 @@ BIO_METHOD *BIO_get_methods(void) { + BIO_meth_set_ctrl(_bio_methods, BIO_ctrl); + BIO_meth_set_create(_bio_methods, BIO_create); + BIO_meth_set_destroy(_bio_methods, BIO_destroy); +- BIO_meth_set_callback_ctrl(_bio_methods, BIO_callback_ctrl); ++ BIO_meth_set_callback_ctrl(_bio_methods, (long (*)(BIO *, int, BIO_info_cb *)) BIO_callback_ctrl); + + return _bio_methods; + }