Skip to content

Commit c6c6803

Browse files
committed
CMake (*BSD): detect videodev2
1 parent e22b58b commit c6c6803

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ jobs:
417417
version: '7.5'
418418
run: |
419419
uname -a
420-
sudo pkg_add -r cmake git pkgconf wayland vulkan-headers vulkan-loader glib2 dconf dbus sqlite3 xfconf imagemagick chafa pulseaudio
420+
sudo pkg_add -r cmake git pkgconf wayland vulkan-headers vulkan-loader glib2 dconf dbus sqlite3 xfconf imagemagick chafa pulseaudio libv4l
421421
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On .
422422
cmake --build . --target package --verbose -j4
423423
./fastfetch --list-features

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,9 +1473,9 @@ if(WIN32)
14731473
set(CMAKE_CXX_STANDARD 17)
14741474
endif()
14751475
if(FreeBSD)
1476-
set(CMAKE_REQUIRED_INCLUDES "/usr/local/include" "/usr/include")
1476+
set(CMAKE_REQUIRED_INCLUDES "/usr/local/include" "/usr/include")
14771477
endif()
1478-
if(LINUX OR FreeBSD)
1478+
if(LINUX OR FreeBSD OR OpenBSD OR NetBSD)
14791479
CHECK_INCLUDE_FILE("linux/videodev2.h" HAVE_LINUX_VIDEODEV2)
14801480
if(HAVE_LINUX_VIDEODEV2)
14811481
target_compile_definitions(libfastfetch PRIVATE FF_HAVE_LINUX_VIDEODEV2=1)

0 commit comments

Comments
 (0)