From f7b054b3af9db6519fbbd4b5cc6907098ad92577 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Fri, 26 Dec 2025 19:04:21 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9fsclose=E4=B8=8Esocketclose?= =?utf8?q?=E6=B7=B7=E6=B7=86=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E7=9A=84?= =?utf8?q?=E6=96=87=E4=BB=B6=E7=B3=BB=E7=BB=9F=E9=97=AE=E9=A2=98=EF=BC=8C?= =?utf8?q?=E5=8C=85=E6=8B=AC=E6=96=87=E5=AD=97=E5=8F=8A=E8=A1=A8=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../middleware/utils/fs/vfs/nuttx_fs/vfs/operation/fs_close.c | 4 ++-- .../lwip_adapter/liteos/src/include/lwip/lwipopts_default.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/sdk/middleware/utils/fs/vfs/nuttx_fs/vfs/operation/fs_close.c b/code/sdk/middleware/utils/fs/vfs/nuttx_fs/vfs/operation/fs_close.c index 63b88c7cd..1cc0e6707 100644 --- a/code/sdk/middleware/utils/fs/vfs/nuttx_fs/vfs/operation/fs_close.c +++ b/code/sdk/middleware/utils/fs/vfs/nuttx_fs/vfs/operation/fs_close.c @@ -89,8 +89,8 @@ int close(int fd) if ((unsigned int)fd >= CONFIG_NFILE_DESCRIPTORS) { /* Close a socket descriptor */ - -#if 1 +#ifndef SUPPORT_RECOVERY_DISPLAY +// #if 1 if (1) { ret = lwip_close(fd); diff --git a/code/sdk/open_source/openharmony/third_party/lwip/lwip_adapter/liteos/src/include/lwip/lwipopts_default.h b/code/sdk/open_source/openharmony/third_party/lwip/lwip_adapter/liteos/src/include/lwip/lwipopts_default.h index e5d6a5c42..13eae916c 100644 --- a/code/sdk/open_source/openharmony/third_party/lwip/lwip_adapter/liteos/src/include/lwip/lwipopts_default.h +++ b/code/sdk/open_source/openharmony/third_party/lwip/lwip_adapter/liteos/src/include/lwip/lwipopts_default.h @@ -1217,7 +1217,7 @@ extern "C" { #endif #ifndef LWIP_COMPAT_SOCKETS -#define LWIP_COMPAT_SOCKETS 2 +#define LWIP_COMPAT_SOCKETS 1 #define LWIP_POSIX_SOCKETS_IO_NAMES 0 #endif -- 2.17.1