From ebbadbed4f72e722f54e90c076a879aacc8bf355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 3 Jul 2023 15:31:33 +0800 Subject: [PATCH] Bios (macOS): fix compiling error on Apple Slicon --- CHANGELOG.md | 6 ++++++ CMakeLists.txt | 2 +- src/detection/bios/bios_apple.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 868765a26..3e156e63c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.12.1 + +Bugfixes: + +* Fix compiling error on Apple Slicon (Bios, macOS) + # 1.12.0 This release backports some changes from dev branch, and fixes 2 crashing issues diff --git a/CMakeLists.txt b/CMakeLists.txt index bc7fa377e..256eb7921 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url project(fastfetch - VERSION 1.12.0 + VERSION 1.12.1 LANGUAGES C DESCRIPTION "Fast system information tool" HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch" diff --git a/src/detection/bios/bios_apple.c b/src/detection/bios/bios_apple.c index a28276e96..d20524297 100644 --- a/src/detection/bios/bios_apple.c +++ b/src/detection/bios/bios_apple.c @@ -48,7 +48,7 @@ void ffDetectBios(FFBiosResult* bios) if(IORegistryEntryCreateCFProperties(registryEntry, &properties, kCFAllocatorDefault, kNilOptions) == kIOReturnSuccess) { ffCfDictGetString(properties, CFSTR("manufacturer"), &bios->biosVendor); - ffCfDictGetString(properties, CFSTR("time-stamp"), &bios->date); + ffCfDictGetString(properties, CFSTR("time-stamp"), &bios->biosDate); CFRelease(properties); } IOObjectRelease(registryEntry);