everywhere: use stdlib.h for malloc(3) definition, not GNU-specific malloc.h

musl implements support for malloc.h, but it is only a stub.  we do not use
any of the GNU-specific malloc interfaces, so just use POSIX stdlib.h instead.

ref #10794
cute-signatures
Ariadne Conill 2021-12-10 11:41:52 -06:00 committed by Timo Teräs
parent b2d3d63184
commit f4f7796ccc
8 changed files with 1 additions and 8 deletions

View File

@ -1,7 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <assert.h>
#include <errno.h>
#include <sys/mman.h>

View File

@ -7,7 +7,7 @@
* SPDX-License-Identifier: GPL-2.0-only
*/
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdint.h>

View File

@ -6,7 +6,6 @@
* SPDX-License-Identifier: GPL-2.0-only
*/
#include <malloc.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>

View File

@ -14,7 +14,6 @@
#include <libgen.h>
#include <limits.h>
#include <unistd.h>
#include <malloc.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>

View File

@ -12,7 +12,6 @@
#include <fcntl.h>
#include <endian.h>
#include <unistd.h>
#include <malloc.h>
#include <dirent.h>
#include <stdint.h>
#include <sys/mman.h>

View File

@ -10,7 +10,6 @@
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <malloc.h>
#include <zlib.h>
#include "apk_defines.h"

View File

@ -12,7 +12,6 @@
#include <ctype.h>
#include <stdio.h>
#include <limits.h>
#include <malloc.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>

View File

@ -11,7 +11,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <malloc.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>