stupid macos

This commit is contained in:
lizzie 2026-02-23 05:15:17 +00:00
parent 3e94e2e646
commit 4c36f4cd43
3 changed files with 7 additions and 2 deletions

View file

@ -27,11 +27,15 @@
#include <sys/random.h>
#elif defined(__APPLE__)
#include <sys/types.h>
#include <sys/random.h>
#include <mach/vm_map.h>
#include <mach/mach.h>
#endif
// Not available on iOS for some fucking stupid reason...
#if defined(__APPLE__) && TARGET_OS_MAC
#include <sys/random.h>
#endif
// FreeBSD
#ifndef MAP_NORESERVE
#define MAP_NORESERVE 0