1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +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:
Tim Schumacher 2022-05-03 13:01:14 +02:00 committed by Andreas Kling
parent 45995aaeb6
commit dcd76db319
3 changed files with 10 additions and 0 deletions

View file

@ -101,6 +101,11 @@ int posix_openpt(int flags);
int grantpt(int fd);
int unlockpt(int fd);
// FIXME: Remove the ifdef once we have a working memalign implementation.
// This is hidden by default until then because many applications prefer
// `posix_memalign` over other implementations of aligned memory.
#ifdef SERENITY_LIBC_SHOW_POSIX_MEMALIGN
int posix_memalign(void**, size_t alignment, size_t size);
#endif
__END_DECLS