1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Include <sys/sysctl.h> for Intel builds

This commit is contained in:
Pavel I. Kryukov 2020-12-25 01:33:09 +03:00 committed by Simon Tatham
parent d594df9803
commit 875a887c8f

View File

@ -10,6 +10,12 @@
#ifndef PUTTY_UXUTILS_H #ifndef PUTTY_UXUTILS_H
#define PUTTY_UXUTILS_H #define PUTTY_UXUTILS_H
#if defined __APPLE__
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
#endif /* defined __APPLE__ */
#if defined __arm__ || defined __aarch64__ #if defined __arm__ || defined __aarch64__
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
@ -24,10 +30,6 @@
#include <asm/hwcap.h> #include <asm/hwcap.h>
#endif #endif
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
#if defined HAVE_GETAUXVAL #if defined HAVE_GETAUXVAL
/* No code needed: getauxval has just the API we want already */ /* No code needed: getauxval has just the API we want already */
#elif defined HAVE_ELF_AUX_INFO #elif defined HAVE_ELF_AUX_INFO