From: "Rémi Denis-Courmont via ffmpeg-devel" <ffmpeg-devel@ffmpeg.org> To: Peter Enderborg <peterend@axis.com>, ffmpeg-devel@ffmpeg.org Cc: "Rémi Denis-Courmont" <remi@remlab.net> Subject: [FFmpeg-devel] Re: [PATCH v3 1/5] configure: Add test_ioctl and test for SIOCGIFINDEX Date: Fri, 29 Aug 2025 20:38:39 +0300 Message-ID: <7313635C-6670-4568-89E0-6A818793EC73@remlab.net> (raw) In-Reply-To: <20250829140459.3220037-2-peterend@axis.com> Le 29 août 2025 17:04:55 GMT+03:00, Peter Enderborg <peterend@axis.com> a écrit : >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. `if_nametoindex` is the prescribed standard function to do this (`atoi` can be used on Windows). >Signed-off-by: Peter Enderborg <peterend@axis.com> >--- > configure | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/configure b/configure >index 9fe28c5af4..b379a6bc92 100755 >--- a/configure >+++ b/configure >@@ -1282,6 +1282,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 "$@" >@@ -2542,6 +2556,7 @@ HAVE_LIST=" > $TOOLCHAIN_FEATURES > $TYPES_LIST > gzip >+ ioctl_gifindex > ioctl_posix > libdrm_getfb2 > makeinfo >@@ -6658,6 +6673,7 @@ if ! disabled network; then > else > disable network > fi >+ test_ioctl SIOCGIFINDEX && enable ioctl_gifindex > fi > > check_builtin MemoryBarrier windows.h "MemoryBarrier()" _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
next prev parent reply other threads:[~2025-08-29 17:39 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <0250811223419.GF29660@pb2> 2025-08-29 14:04 ` [FFmpeg-devel] [PATCH v3 0/5] Select output interfaces for ipv6 multicast Peter Enderborg via ffmpeg-devel 2025-08-29 14:04 ` [FFmpeg-devel] [PATCH v3 1/5] configure: Add test_ioctl and test for SIOCGIFINDEX Peter Enderborg via ffmpeg-devel 2025-08-29 17:38 ` Rémi Denis-Courmont via ffmpeg-devel [this message] 2025-08-29 14:04 ` [FFmpeg-devel] [PATCH v3 2/5] avformat/udp: Select output interfaces for ipv6 multicast Peter Enderborg via ffmpeg-devel 2025-08-29 14:04 ` [FFmpeg-devel] [PATCH v3 3/5] libavformat: udp.c Add support for multi or single join Peter Enderborg via ffmpeg-devel 2025-08-29 14:04 ` [FFmpeg-devel] [PATCH v3 4/5] libavformat: add multicast interface Peter Enderborg via ffmpeg-devel 2025-08-29 14:04 ` [FFmpeg-devel] [PATCH v3 5/5] doc/protocols: Add command-line description for ipv6 options Peter Enderborg via ffmpeg-devel 2025-08-30 0:06 ` [FFmpeg-devel] " Marton Balint via ffmpeg-devel
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=7313635C-6670-4568-89E0-6A818793EC73@remlab.net \ --to=ffmpeg-devel@ffmpeg.org \ --cc=peterend@axis.com \ --cc=remi@remlab.net \ /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