Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add V4L2 support on OpenBSD #18

Merged
merged 1 commit into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4048,7 +4048,7 @@ fi
if test "${enable_v4l2}z" = "yesz" ; then
case "$target_os" in
solaris* | sunos* ) V4L2_HEADER="sys/videodev2.h" ; ;;
netbsd* ) V4L2_HEADER="sys/videoio.h" ; ;;
netbsd* | openbsd* ) V4L2_HEADER="sys/videoio.h" ; ;;
* ) V4L2_HEADER="linux/videodev2.h" ; ;;
esac

Expand Down
2 changes: 1 addition & 1 deletion plugins/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ AC_ARG_ENABLE(v4l2, [ --enable-v4l2 enable V4L2 video support],,enab
if test "${enable_v4l2}z" = "yesz" ; then
case "$target_os" in
solaris* | sunos* ) V4L2_HEADER="sys/videodev2.h" ; ;;
netbsd* ) V4L2_HEADER="sys/videoio.h" ; ;;
netbsd* | openbsd* ) V4L2_HEADER="sys/videoio.h" ; ;;
* ) V4L2_HEADER="linux/videodev2.h" ; ;;
esac

Expand Down
2 changes: 1 addition & 1 deletion plugins/vidinput_v4l2/vidinput_names.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void V4LXNames::ReadDeviceDirectory(PDirectory devdir, POrdinalToString & vid)
if (!devdir.Open())
return;

#if defined (P_SOLARIS) || defined (P_NETBSD)
#if defined (P_SOLARIS) || defined (P_NETBSD) || defined(P_OPENBSD)
int devnum = 0;
do {
PString filename = devdir.GetEntryName();
Expand Down