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.git
commit 7daf16fd7079082f998434742cde2e22fdcb6b3c Author: Yongrong Wang <[email protected]> AuthorDate: Mon Jun 16 15:16:51 2025 +0800 sys/vm_sockets.h: move netpacket/vm_sockets.h to sys/vm_sockets.h to compatible with different systems Signed-off-by: Yongrong Wang <[email protected]> --- include/{netpacket => sys}/vm_sockets.h | 8 ++++---- libs/libc/netdb/lib_getaddrinfo.c | 2 +- net/vsock/vsock.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/netpacket/vm_sockets.h b/include/sys/vm_sockets.h similarity index 97% rename from include/netpacket/vm_sockets.h rename to include/sys/vm_sockets.h index 69627cf3c4a..0e6407ac59c 100644 --- a/include/netpacket/vm_sockets.h +++ b/include/sys/vm_sockets.h @@ -1,5 +1,5 @@ /**************************************************************************** - * include/netpacket/vm_sockets.h + * include/sys/vm_sockets.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -18,8 +18,8 @@ * ****************************************************************************/ -#ifndef __INCLUDE_NETPACKET_VM_SOCKETS_H -#define __INCLUDE_NETPACKET_VM_SOCKETS_H +#ifndef __INCLUDE_SYS_VM_SOCKETS_H +#define __INCLUDE_SYS_VM_SOCKETS_H /**************************************************************************** * Included Files @@ -204,4 +204,4 @@ struct sockaddr_vm sizeof(uint8_t)]; }; -#endif /* __INCLUDE_NETPACKET_VM_SOCKETS_H */ +#endif /* __INCLUDE_SYS_VM_SOCKETS_H */ diff --git a/libs/libc/netdb/lib_getaddrinfo.c b/libs/libc/netdb/lib_getaddrinfo.c index 15beb020c5a..90cc258a360 100644 --- a/libs/libc/netdb/lib_getaddrinfo.c +++ b/libs/libc/netdb/lib_getaddrinfo.c @@ -34,7 +34,7 @@ #include <netinet/in.h> #include <nuttx/net/loopback.h> #include <netpacket/rpmsg.h> -#include <netpacket/vm_sockets.h> +#include <sys/vm_sockets.h> #include <sys/un.h> #include "libc.h" diff --git a/net/vsock/vsock.h b/net/vsock/vsock.h index 546e4325a70..9af83327209 100644 --- a/net/vsock/vsock.h +++ b/net/vsock/vsock.h @@ -30,8 +30,8 @@ #ifdef CONFIG_NET_VSOCK #include <debug.h> +#include <sys/vm_sockets.h> -#include <netpacket/vm_sockets.h> #include <nuttx/list.h> #include <nuttx/net/net.h> #include <nuttx/virtio/virtio.h>
