master ohmu/fastfetch-openbsd / src / detection / libc / libc_bsd.c
ohmu  ·  2026-10-15
 1#include "libc.h"
 2
 3const char* ffDetectLibc(FFLibcResult* result) {
 4    result->name = "Unknown";
 5    result->version = nullptr;
 6
 7#ifdef __DragonFly__ // We define `__FreeBSD__` on DragonFly BSD for simplification
 8    result->name = "DF";
 9    #ifdef FF_DF_VERSION
10    result->version = FF_DF_VERSION;
11    #endif
12#elif __FreeBSD__
13    result->name = "FBSD";
14    #ifdef FF_FBSD_VERSION
15    result->version = FF_FBSD_VERSION;
16    #endif
17#endif
18
19    return nullptr;
20}