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)
734734 src/common/sysctl.c
735735 src/detection/battery/battery_nbsd.c
736736 src/detection/bios/bios_nbsd.c
737- src/detection/bluetooth/bluetooth_nosupport .c
737+ src/detection/bluetooth/bluetooth_bsd .c
738738 src/detection/bluetoothradio/bluetoothradio_nosupport.c
739739 src/detection/board/board_nbsd.c
740740 src/detection/bootmgr/bootmgr_bsd.c
@@ -1620,6 +1620,7 @@ elseif(OpenBSD)
16201620 )
16211621elseif (NetBSD)
16221622 target_link_libraries (libfastfetch
1623+ PRIVATE "bluetooth"
16231624 PRIVATE "m"
16241625 PRIVATE "prop"
16251626 )
Original file line number Diff line number Diff line change 66static int enumDev (FF_MAYBE_UNUSED int sockfd , struct bt_devinfo const * dev , FFlist * devices )
77{
88 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+ );
1016 ffStrbufInitS (& device -> address , bt_ntoa (& dev -> bdaddr , NULL ));
1117 ffStrbufUpperCase (& device -> address );
1218 ffStrbufInit (& device -> type );
You can’t perform that action at this time.
0 commit comments