From b1f20cfec6ff902975919ab6f3fd18be744f16fe Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Sat, 1 Nov 2025 09:11:16 +0100 Subject: [PATCH] [v1.07] Fix bug introduced by #251 (reported in #375) PR #251 added: ``` if defined (__FreeBSD__) || defined (__APPLE__) ... get_sys_info_by_name ``` that function is available in src/common/sysctl.c. In the Makefile it builds with sysctl.c but only under FreeBSD: ``` ifeq ($(os), FreeBSD) ``` So it fails under macOS as reported by #375 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d07f036..552cb10 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ ifneq ($(OS),Windows_NT) HEADERS += $(SRC_DIR)freq/freq.h CFLAGS += -pthread endif - ifeq ($(os), FreeBSD) + ifeq ($(os), $(filter $(os), FreeBSD Darwin)) SOURCE += $(SRC_COMMON)sysctl.c HEADERS += $(SRC_COMMON)sysctl.h endif