Le 29 août 2025 17:04:55 GMT+03:00, Peter Enderborg <[email protected]> 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 <[email protected]> >--- > 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 -- [email protected] To unsubscribe send an email to [email protected]
