mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-13 08:44:08 +03:00
add legacy function valloc
it was already declared in stdlib.h, but not defined anywhere.
This commit is contained in:
parent
2e5dfa515f
commit
2f820f3b1f
8
src/legacy/valloc.c
Normal file
8
src/legacy/valloc.c
Normal file
@ -0,0 +1,8 @@
|
||||
#define _BSD_SOURCE
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
|
||||
void *valloc(size_t size)
|
||||
{
|
||||
return memalign(PAGE_SIZE, size);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user