This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 7ef51d210963e657aa3ba4e62e6a1c2e89b2cc64 Author: Yongrong Wang <[email protected]> AuthorDate: Mon Jun 16 20:27:57 2025 +0800 netutils/iperf: include vm_sockets.h from sys/. The AF_VSOCK definitions live in <sys/vm_sockets.h>, not in <netpacket/vm_sockets.h>. Include the header from the right place so iperf builds with CONFIG_NET_VSOCK. Signed-off-by: Yongrong Wang <[email protected]> Assisted-by: Kiro:claude-opus-4 --- netutils/iperf/iperf.c | 2 +- netutils/iperf/iperf_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netutils/iperf/iperf.c b/netutils/iperf/iperf.c index dc36b010c..06d52f087 100644 --- a/netutils/iperf/iperf.c +++ b/netutils/iperf/iperf.c @@ -29,12 +29,12 @@ #include <net/if.h> #include <netinet/in.h> #include <netpacket/rpmsg.h> -#include <netpacket/vm_sockets.h> #include <pthread.h> #include <sched.h> #include <stdbool.h> #include <sys/prctl.h> #include <sys/socket.h> +#include <sys/vm_sockets.h> #include <sys/time.h> #include <sys/un.h> #include <unistd.h> diff --git a/netutils/iperf/iperf_main.c b/netutils/iperf/iperf_main.c index 5195568ff..9c5449289 100644 --- a/netutils/iperf/iperf_main.c +++ b/netutils/iperf/iperf_main.c @@ -28,9 +28,9 @@ #include <arpa/inet.h> #include <net/if.h> -#include <netpacket/vm_sockets.h> #include <strings.h> #include <sys/time.h> +#include <sys/vm_sockets.h> #include "argtable3.h" #include "iperf.h"
