Commit: 5b6ad6b5064ec22414ce5f76a3b289b97e6844db
Parent: 516e168e738276ff2ab6dcba7472f7a6247b594a
Author: Randy Palamar
Date: Fri, 29 Nov 2024 06:58:07 -0700
drop sysconf call
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/os_unix.c b/os_unix.c
@@ -121,7 +121,7 @@ os_map_file(char *path, i32 mode, i32 perm)
static PLATFORM_ALLOCATE_RING_BUFFER_FN(posix_allocate_ring_buffer)
{
- size pagesize = sysconf(_SC_PAGESIZE);
+ size pagesize = PAGE_SIZE;
if (capacity % pagesize != 0)
capacity += pagesize - capacity % pagesize;