mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
LibC: Hide posix_memalign
by default
This should keep ports from preferring `posix_memalign` over other implementations of aligned memory.
This commit is contained in:
parent
45995aaeb6
commit
dcd76db319
3 changed files with 10 additions and 0 deletions
|
@ -1336,6 +1336,7 @@ void _Exit(int status)
|
|||
_exit(status);
|
||||
}
|
||||
|
||||
#ifdef SERENITY_LIBC_SHOW_POSIX_MEMALIGN
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html
|
||||
int posix_memalign(void** memptr, size_t alignment, size_t size)
|
||||
{
|
||||
|
@ -1344,3 +1345,4 @@ int posix_memalign(void** memptr, size_t alignment, size_t size)
|
|||
(void)size;
|
||||
TODO();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue