[v1.05] Move sysctl from ARM-specific to common (#251)

This commit is contained in:
Dr-Noob
2024-07-07 12:43:03 +01:00
parent 946729dd06
commit 65378aaed9
5 changed files with 6 additions and 6 deletions

View File

@@ -43,8 +43,8 @@ ifneq ($(OS),Windows_NT)
CFLAGS += -DARCH_ARM -Wno-unused-parameter -std=c99 -fstack-protector-all
ifeq ($(os), Darwin)
SOURCE += $(SRC_DIR)sysctl.c
HEADERS += $(SRC_DIR)sysctl.h
SOURCE += $(COMMON_SRC)sysctl.c
HEADERS += $(COMMON_SRC)sysctl.h
endif
else ifeq ($(arch), $(filter $(arch), riscv64 riscv32))
SRC_DIR=src/riscv/

View File

@@ -10,7 +10,7 @@
#include <asm/hwcap.h>
#include "../common/freq.h"
#elif defined __APPLE__ || __MACH__
#include "sysctl.h"
#include "../common/sysctl.h"
#endif
#include "../common/global.h"

View File

@@ -11,7 +11,7 @@
#include "../common/pci.h"
#if defined(__APPLE__) || defined(__MACH__)
#include "sysctl.h"
#include "../common/sysctl.h"
#endif
#define NA -1

View File

@@ -4,8 +4,8 @@
#include <string.h>
#include <errno.h>
#include "../common/global.h"
#include "../common/cpu.h"
#include "global.h"
#include "cpu.h"
uint32_t get_sys_info_by_name(char* name) {
size_t size = 0;