File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2524,6 +2524,7 @@ HAVE_LIST="
2524
2524
opencl_videotoolbox
2525
2525
perl
2526
2526
pod2man
2527
+ posix_ioctl
2527
2528
texi2html
2528
2529
xmllint
2529
2530
zlib_gzip
@@ -7166,6 +7167,7 @@ xmllint --version > /dev/null 2>&1 && enable xmllint || disable xmllint
7166
7167
check_headers linux/fb.h
7167
7168
check_headers linux/videodev2.h
7168
7169
test_code cc linux/videodev2.h " struct v4l2_frmsizeenum vfse; vfse.discrete.width = 0;" && enable_sanitized struct_v4l2_frmivalenum_discrete
7170
+ test_code cc sys/ioctl.h " int ioctl(int, int, ...)" && enable posix_ioctl
7169
7171
7170
7172
# check V4L2 codecs available in the API
7171
7173
if enabled v4l2_m2m; then
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ struct video_data {
111
111
int (* open_f )(const char * file , int oflag , ...);
112
112
int (* close_f )(int fd );
113
113
int (* dup_f )(int fd );
114
- #if defined( __sun ) || defined( __BIONIC__ ) || defined( __musl__ ) /* POSIX-like */
114
+ #if HAVE_POSIX_IOCTL
115
115
int (* ioctl_f )(int fd , int request , ...);
116
116
#else
117
117
int (* ioctl_f )(int fd , unsigned long int request , ...);
You can’t perform that action at this time.
0 commit comments