Date: Mon, 8 Mar 2021 11:31:31 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r567839 - head/sysutils/fluent-bit/files Message-ID: <202103081131.128BVVRn044924@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Mon Mar 8 11:31:31 2021 New Revision: 567839 URL: https://svnweb.freebsd.org/changeset/ports/567839 Log: sysutils/fluent-bit: fix build on powerpc* In file included from /wrkdirs/usr/ports/sysutils/fluent-bit/work/fluent-bit-1.7.1/lib/monkey/deps/flb_libco/libco.c:20: /wrkdirs/usr/ports/sysutils/fluent-bit/work/fluent-bit-1.7.1/lib/monkey/deps/flb_libco/ppc.c:282:12: error: conflicting types for 'co_create' cothread_t co_create(unsigned int size, void (*entry_)(void)) { ^ /wrkdirs/usr/ports/sysutils/fluent-bit/work/fluent-bit-1.7.1/lib/monkey/deps/flb_libco/libco.h:19:12: note: previous declaration is here cothread_t co_create(unsigned int, void (*)(void), size_t *); ^ 1 error generated. Added: head/sysutils/fluent-bit/files/patch-lib_monkey_deps_flb__libco_ppc.c (contents, props changed) Added: head/sysutils/fluent-bit/files/patch-lib_monkey_deps_flb__libco_ppc.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fluent-bit/files/patch-lib_monkey_deps_flb__libco_ppc.c Mon Mar 8 11:31:31 2021 (r567839) @@ -0,0 +1,22 @@ +--- lib/monkey/deps/flb_libco/ppc.c.orig 2021-03-08 11:12:53 UTC ++++ lib/monkey/deps/flb_libco/ppc.c +@@ -279,7 +279,9 @@ static uint32_t* co_create_(unsigned size, uintptr_t e + return t; + } + +-cothread_t co_create(unsigned int size, void (*entry_)(void)) { ++cothread_t co_create(unsigned int size, void (*entry_)(void), ++ size_t *out_size) { ++ + uintptr_t entry = (uintptr_t)entry_; + uint32_t* t = 0; + +@@ -325,7 +327,7 @@ cothread_t co_create(unsigned int size, void (*entry_) + t[10] = (uint32_t)(sp >> shift >> shift); + t[11] = (uint32_t)sp; + } +- ++ *out_size = size; + return t; + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103081131.128BVVRn044924>