mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Uptime: support freebsd
This commit is contained in:
+2
-2
@@ -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)
|
||||
{
|
||||
Reference in New Issue
Block a user