]> git.ipfire.org Git - thirdparty/gcc.git/commit - libiberty/configure
libiberty, configure, Darwin: Avoid detecting deprecated sbrk.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 23 Aug 2021 16:27:25 +0000 (17:27 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 1 Sep 2021 18:34:07 +0000 (19:34 +0100)
commitfbb334a6acc5cc5d8944712daeda8089ef1d7fd2
treee9fa8e16ccad424124429afa63a3a352e2044d2d
parenta88280cff3436d0b6ab454514e5a3b97a543e9a5
libiberty, configure, Darwin: Avoid detecting deprecated sbrk.

Darwin provides an implementation of sbrk, which is detected by
the configuration process.  However, it is deprecated which leads
to build warnings.  The malloc-based implementation is more
suitable.  This patch removes sbrk from the functions searched
for Darwin.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libiberty/ChangeLog:

* configure: Regenerate.
* configure.ac: Do not search for sbrk on Darwin.
* xmalloc.c: Do not declare sbrk unless it has been found
by configure.
libiberty/configure
libiberty/configure.ac
libiberty/xmalloc.c