mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
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
This commit is contained in:
2
Makefile
2
Makefile
@@ -30,7 +30,7 @@ ifneq ($(OS),Windows_NT)
|
|||||||
HEADERS += $(SRC_DIR)freq/freq.h
|
HEADERS += $(SRC_DIR)freq/freq.h
|
||||||
CFLAGS += -pthread
|
CFLAGS += -pthread
|
||||||
endif
|
endif
|
||||||
ifeq ($(os), FreeBSD)
|
ifeq ($(os), $(filter $(os), FreeBSD Darwin))
|
||||||
SOURCE += $(SRC_COMMON)sysctl.c
|
SOURCE += $(SRC_COMMON)sysctl.c
|
||||||
HEADERS += $(SRC_COMMON)sysctl.h
|
HEADERS += $(SRC_COMMON)sysctl.h
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user