diff --git a/unix/uxutils.h b/unix/uxutils.h index 178b3751..c9acff53 100644 --- a/unix/uxutils.h +++ b/unix/uxutils.h @@ -10,6 +10,12 @@ #ifndef PUTTY_UXUTILS_H #define PUTTY_UXUTILS_H +#if defined __APPLE__ +#ifdef HAVE_SYS_SYSCTL_H +#include +#endif +#endif /* defined __APPLE__ */ + #if defined __arm__ || defined __aarch64__ #ifdef HAVE_SYS_TYPES_H @@ -24,10 +30,6 @@ #include #endif -#ifdef HAVE_SYS_SYSCTL_H -#include -#endif - #if defined HAVE_GETAUXVAL /* No code needed: getauxval has just the API we want already */ #elif defined HAVE_ELF_AUX_INFO