Browse Source

cpuinfo: Include unistd.h for getpagesize() support, too.

Ryan C. Gordon 21 hours ago
parent
commit
6ab212bd13
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cpuinfo/SDL_cpuinfo.c

+ 1 - 1
src/cpuinfo/SDL_cpuinfo.c

@@ -29,7 +29,7 @@
 
 // CPU feature detection for SDL
 
-#ifdef HAVE_SYSCONF
+#if defined(HAVE_SYSCONF) || defined(HAVE_GETPAGESIZE)
 #include <unistd.h>
 #endif
 #ifdef HAVE_SYSCTLBYNAME