Fastfetch: make it compile on SunOS

This commit is contained in:
Carter Li committed 2024-06-16 01:02:48 +08:00
1 parent 5539fecb99
commit d35490aeef
26 files changed
+241 -8

No files matched your search

+5 -1
View File
@@ -14,7 +14,11 @@ const char* ffDetectProcesses(uint32_t* result)
struct dirent* entry;
while ((entry = readdir(dir)) != NULL)
{
if (entry->d_type == DT_DIR && ffCharIsDigit(entry->d_name[0]))
if (
#ifdef _DIRENT_HAVE_D_TYPE
entry->d_type == DT_DIR &&
#endif
ffCharIsDigit(entry->d_name[0]))
++num;
}