From 875a887c8fe25a1e909174d3f97b7dd140fa609f Mon Sep 17 00:00:00 2001 From: "Pavel I. Kryukov" Date: Fri, 25 Dec 2020 01:33:09 +0300 Subject: [PATCH] Include for Intel builds --- unix/uxutils.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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