aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2024-08-29 15:40:00 +0200
committerRamiro Polla <ramiro.polla@gmail.com>2024-09-01 18:01:43 +0200
commit00b64fca55a3a009c9d0e391c85f4fd3291e5d12 (patch)
tree1ecc0c46612fff43b6ca14fa576bc59792bf361e /libavdevice
parent6aafe61285404022b1e8e882b8a875bc33a93aec (diff)
downloadffmpeg-00b64fca55a3a009c9d0e391c85f4fd3291e5d12.tar.gz
configure: improve check for POSIX ioctl
Instead of relying on system #ifdefs which may or may not be correct, detect the POSIX ioctl signature at configure time.
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/v4l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 42d4b97c8f..0ae6872338 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -111,7 +111,7 @@ struct video_data {
int (*open_f)(const char *file, int oflag, ...);
int (*close_f)(int fd);
int (*dup_f)(int fd);
-#if defined(__sun) || defined(__BIONIC__) || defined(__musl__) /* POSIX-like */
+#if HAVE_POSIX_IOCTL
int (*ioctl_f)(int fd, int request, ...);
#else
int (*ioctl_f)(int fd, unsigned long int request, ...);