Fix more cache size queries.

libeigen/eigen!2295
This commit is contained in:
Antonio Sánchez
2026-03-14 15:43:24 +00:00
parent 9ae0e0f195
commit b2f95d3733
2 changed files with 8 additions and 4 deletions

View File

@@ -129,8 +129,11 @@
#include <intrin.h>
#endif
// Required for querying cache sizes on macOS.
#if EIGEN_OS_MAC
// Required for querying cache sizes on Linux and macOS.
#if EIGEN_OS_LINUX
#include <unistd.h>
#elif EIGEN_OS_MAC
#include <sys/types.h>
#include <sys/sysctl.h>
#endif