Skip to content

Commit

Permalink
fixing V4L2
Browse files Browse the repository at this point in the history
  • Loading branch information
jonazpiazu committed Nov 20, 2012
1 parent 3007a0a commit e27fd17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 3rdparty.old/libcvd/configure
Original file line number Diff line number Diff line change
Expand Up @@ -6972,7 +6972,7 @@ echo $ECHO_N "checking for v4l2... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
#include <sys/types.h>
#include <linux/types.h>
#include <linux/videodev.h>
#include <linux/videodev2.h>
int main(){V4L2_PIX_FMT_GREY;return 0;}
_ACEOF
rm -f conftest.$ac_objext
Expand Down Expand Up @@ -7093,7 +7093,7 @@ _ACEOF
save_CXXFLAGS="$CXXFLAGS"
a=

for ac_header in linux/videodev.h
for ac_header in linux/videodev2.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty.old/libcvd/cvd/Linux/v4l2frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#ifdef CVD_INTERNAL_HAVE_STRANGE_V4L2
#include <videodevx/videodev.h>
#else
#include <linux/videodev.h>
#include <linux/videodev2.h>
#endif

namespace CVD {
Expand Down
3 changes: 2 additions & 1 deletion 3rdparty.old/libcvd/cvd_src/Linux/v4l2buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ void ErrorInfo(int e)
#define K26(X) X
#define K24(X)
#else
#error "Can't do v4l2 for this kernel version"
#define K26(X) X
#define K24(X)
#endif


Expand Down

0 comments on commit e27fd17

Please sign in to comment.