4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-25 01:57:17 +08:00
Stefan Eßer c78c56c06d sys/_bitset.h: Fix fall-out from commit 5e04571cf3c
There is a reference to malloc() in #define __BITSET_ALLOC. Even
though this macro is only defined but not used, it causes the lang/gcc
ports to fail. The gcc ports "poison" a number of functions including
malloc() and prevent their use (including in macro definitions).

This commit moved the declaration of __BITSET_ALLOC into the
conditional block that depends on _KERNEL or _WANT_FREEBSD_BITSET
being defined.

There is no use of __BITSET_ALLOC in the FreeBSD sources, and userland
programs that want to use BITSEC_ALLOC will define _WANT_FREEBSD_BITSET
anyway.

This patch has been tested by building lang/gcc11 and a successful
make buildworld.

This commit shall be MFCed together with commit 5e04571cf3c.

MFC after:	1 month
2022-06-22 10:15:26 +02:00
..
2018-08-24 15:04:39 +02:00
2019-09-25 09:01:28 +02:00
2016-12-20 12:39:31 +01:00
2019-09-25 09:01:04 +02:00
2021-01-05 13:41:34 -05:00
2017-10-05 14:56:12 +02:00
2017-05-25 12:41:33 -04:00
2018-08-24 15:04:39 +02:00