You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to build a fastfetch using wifi_linux.c where FF_HAVE_LINUX_WIRELESS is not set an error is raised:
./src/detection/wifi/wifi_linux.c: In function ‘ffDetectWifi’:
./src/detection/wifi/wifi_linux.c:279:13: error: implicit declaration of function ‘ffPathExists’ [-Wimplicit-function-declaration]
279 | if(!ffPathExists(buffer.chars, FF_PATHTYPE_DIRECTORY))
| ^~~~~~~~~~~~
./src/detection/wifi/wifi_linux.c:279:40: error: ‘FF_PATHTYPE_DIRECTORY’ undeclared (first use in this function)
279 | if(!ffPathExists(buffer.chars, FF_PATHTYPE_DIRECTORY))
| ^~~~~~~~~~~~~~~~~~~~~
./src/detection/wifi/wifi_linux.c:279:40: note: each undeclared identifier is reported only once for each function it appears in
./src/detection/wifi/wifi_linux.c:295:14: error: implicit declaration of function ‘ffAppendFileBuffer’ [-Wimplicit-function-declaration]
295 | if (!ffAppendFileBuffer(buffer.chars, &item->inf.status))
| ^~~~~~~~~~~~~~~~~~
./src/detection/wifi/wifi_linux.c:305:17: error: implicit declaration of function ‘detectWifiWithIoctls’; did you mean ‘detectWifiWithIw’? [-Wimplicit-function-declaration]
305 | detectWifiWithIoctls(item);
| ^~~~~~~~~~~~~~~~~~~~
| detectWifiWithIw
Moving the #include "common/io/io.h statement out of the #if FF_HAVE_LINUX_WIRELESS include guard seems to solve build error.
What happened: Build error.
Fastfetch version used: 2.21
Did it work in an older version: yes, anything before 2.21
The text was updated successfully, but these errors were encountered:
General description of bug:
When trying to build a fastfetch using
wifi_linux.c
whereFF_HAVE_LINUX_WIRELESS
is not set an error is raised:Moving the
#include "common/io/io.h
statement out of the#if FF_HAVE_LINUX_WIRELESS
include guard seems to solve build error.What happened: Build error.
Fastfetch version used: 2.21
Did it work in an older version: yes, anything before 2.21
The text was updated successfully, but these errors were encountered: