From: Peter Enderborg <peterend@axis.com> To: <ffmpeg-devel@ffmpeg.org>, <luca.abeni@santannapisa.it> Cc: Peter Enderborg <peterend@axis.com> Subject: [FFmpeg-devel] [PATCH v2.1 1/2] configure: Add test_ioctl and test for SIOCGIFINDEX Date: Fri, 8 Aug 2025 09:27:34 +0200 Message-ID: <20250808072735.1812024-2-peterend@axis.com> (raw) In-Reply-To: <20250808072735.1812024-1-peterend@axis.com> Adds a generic ioctl tester and a specific test SIOCGIFINDEX that sets ioctl_gifindex. It is a network specific feature and the tests are run only in network context. Signed-off-by: Peter Enderborg <peterend@axis.com> --- configure | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configure b/configure index 712ed947ff..9c9de9f525 100755 --- a/configure +++ b/configure @@ -1279,6 +1279,20 @@ int x; EOF } +test_ioctl(){ + log test_ioctl "$@" + ctl=$1 + shift 1 + test_cc "$@" <<EOF +#include <stddef.h> +#include <sys/ioctl.h> +int f; +void x(){ +ioctl(f, $ctl, NULL); +} +EOF +} + check_cflags(){ log check_cflags "$@" test_cflags "$@" && add_cflags "$@" @@ -2536,6 +2550,7 @@ HAVE_LIST=" $TOOLCHAIN_FEATURES $TYPES_LIST gzip + ioctl_gifindex ioctl_posix libdrm_getfb2 makeinfo @@ -2668,6 +2683,7 @@ CONFIG_EXTRA=" vvc_sei wma_freqs wmv2dsp + " CMDLINE_SELECT=" @@ -6026,6 +6042,7 @@ case $target_os in linux) enable section_data_rel_ro enabled_any arm aarch64 && enable_weak linux_perf + ;; irix*) target_os=irix @@ -6631,6 +6648,7 @@ if ! disabled network; then else disable network fi + test_ioctl SIOCGIFINDEX && enable ioctl_gifindex fi check_builtin MemoryBarrier windows.h "MemoryBarrier()" -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2025-08-08 7:28 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-08-08 7:27 [FFmpeg-devel] [PATCH v2.1 0/2] Select output interfaces for ipv6 multicast Peter Enderborg 2025-08-08 7:27 ` Peter Enderborg [this message] 2025-08-08 7:27 ` [FFmpeg-devel] [PATCH v2.1 2/2] avformat/udp: " Peter Enderborg
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20250808072735.1812024-2-peterend@axis.com \ --to=peterend@axis.com \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=luca.abeni@santannapisa.it \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git