Uptime: support freebsd

This commit is contained in:
李通洲
2022-10-26 17:03:46 +08:00
parent e225b496b1
commit 470d160346
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -302,6 +302,7 @@ endif()
if(BSD OR APPLE)
list(APPEND LIBFASTFETCH_SRC
src/common/sysctl.c
src/detection/uptime/uptime_bsd.c
)
endif()
@@ -310,6 +311,7 @@ if(LINUX OR ANDROID)
src/detection/cpu/cpu_linux.c
src/detection/memory/memory_linux.c
src/detection/swap/swap_linux.c
src/detection/uptime/uptime_linux.c
)
endif()
@@ -320,7 +322,6 @@ if(LINUX OR ANDROID OR BSD)
src/detection/temps/temps_linux.c
src/detection/opengl/opengl_linux.c
src/detection/processes/processes_linux.c
src/detection/uptime/uptime_linux.c
src/detection/packages/packages_linux.c
src/detection/poweradapter/poweradapter_nosupport.c
@@ -407,7 +408,6 @@ if(APPLE)
src/detection/font/font_apple.m
src/detection/opengl/opengl_apple.c
src/detection/processes/processes_apple.c
src/detection/uptime/uptime_apple.c
src/detection/packages/packages_apple.c
src/detection/bios/bios_nosupport.c
@@ -2,6 +2,7 @@
#include <time.h>
#include <sys/sysctl.h>
#include <sys/time.h>
uint64_t ffDetectUptime(const FFinstance* instance)
{