File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -734,7 +734,7 @@ elseif(NetBSD)
734
734
src/common/sysctl.c
735
735
src/detection/battery/battery_nbsd.c
736
736
src/detection/bios/bios_nbsd.c
737
- src/detection/bluetooth/bluetooth_nosupport .c
737
+ src/detection/bluetooth/bluetooth_bsd .c
738
738
src/detection/bluetoothradio/bluetoothradio_nosupport.c
739
739
src/detection/board/board_nbsd.c
740
740
src/detection/bootmgr/bootmgr_bsd.c
@@ -1620,6 +1620,7 @@ elseif(OpenBSD)
1620
1620
)
1621
1621
elseif (NetBSD)
1622
1622
target_link_libraries (libfastfetch
1623
+ PRIVATE "bluetooth"
1623
1624
PRIVATE "m"
1624
1625
PRIVATE "prop"
1625
1626
)
Original file line number Diff line number Diff line change 6
6
static int enumDev (FF_MAYBE_UNUSED int sockfd , struct bt_devinfo const * dev , FFlist * devices )
7
7
{
8
8
FFBluetoothResult * device = ffListAdd (devices );
9
- ffStrbufInitS (& device -> name , bt_devremote_name_gen (dev -> devname , & dev -> bdaddr ));
9
+ ffStrbufInitS (& device -> name ,
10
+ #if __FreeBSD__
11
+ bt_devremote_name_gen (dev -> devname , & dev -> bdaddr )
12
+ #else
13
+ dev -> devname
14
+ #endif
15
+ );
10
16
ffStrbufInitS (& device -> address , bt_ntoa (& dev -> bdaddr , NULL ));
11
17
ffStrbufUpperCase (& device -> address );
12
18
ffStrbufInit (& device -> type );
You can’t perform that action at this time.
0 commit comments