mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:14:37 +02:00
fix build on macos
This commit is contained in:
@@ -178,7 +178,7 @@ static uint32_t getXBPS(FFstrbuf* baseDir)
|
||||
|
||||
#else // !__APPLE__
|
||||
|
||||
static uint32_t getNumBrewPackages(FFstrbuf* baseDir)
|
||||
static uint32_t getBrewPackages(FFstrbuf* baseDir)
|
||||
{
|
||||
uint32_t result = 0;
|
||||
uint32_t baseDirLength = baseDir->length;
|
||||
@@ -267,10 +267,10 @@ static void getPackageCounts(const FFinstance* instance, FFstrbuf* baseDir, Pack
|
||||
FF_UNUSED(instance);
|
||||
#endif
|
||||
|
||||
uint32_t baseDirLength = baseDir->length;
|
||||
|
||||
#ifndef __APPLE__ //Linux desktop and Anrdoid
|
||||
|
||||
uint32_t baseDirLength = baseDir->length;
|
||||
|
||||
//pacman
|
||||
ffStrbufAppendS(baseDir, "/var/lib/pacman/local");
|
||||
packageCounts->pacman += getNumElements(baseDir->chars, DT_DIR);
|
||||
|
||||
Reference in New Issue
Block a user