From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id 8A7B23858433; Mon, 18 Oct 2021 15:54:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A7B23858433 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/iains/heads/d-for-darwin)] libphobos: Align interface of gcc.sections.osx with gcc.sections.elf_shared X-Act-Checkin: gcc X-Git-Author: Iain Buclaw X-Git-Refname: refs/users/iains/heads/d-for-darwin X-Git-Oldrev: 20cbdf25bf4b644538347fa0e0e49e0cd53c7d9e X-Git-Newrev: 95652536ebaa11398dd54fcb4f9572923bddaa62 Message-Id: <20211018155417.8A7B23858433@sourceware.org> Date: Mon, 18 Oct 2021 15:54:17 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2021 15:54:17 -0000 https://gcc.gnu.org/g:95652536ebaa11398dd54fcb4f9572923bddaa62 commit 95652536ebaa11398dd54fcb4f9572923bddaa62 Author: Iain Buclaw Date: Mon Dec 7 01:25:17 2020 +0100 libphobos: Align interface of gcc.sections.osx with gcc.sections.elf_shared Diff: --- libphobos/libdruntime/core/sys/darwin/execinfo.d | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libphobos/libdruntime/core/sys/darwin/execinfo.d b/libphobos/libdruntime/core/sys/darwin/execinfo.d index c929cc2f88d..d9607f392eb 100644 --- a/libphobos/libdruntime/core/sys/darwin/execinfo.d +++ b/libphobos/libdruntime/core/sys/darwin/execinfo.d @@ -21,6 +21,11 @@ extern (C): nothrow: @nogc: -int backtrace(void** buffer, int size); -char** backtrace_symbols(const(void*)* buffer, int size); -void backtrace_symbols_fd(const(void*)* buffer, int size, int fd); +import core.sys.darwin.config; + +static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_5) +{ + int backtrace(void** buffer, int size); + char** backtrace_symbols(const(void*)* buffer, int size); + void backtrace_symbols_fd(const(void*)* buffer, int size, int fd); +}