From 24bc59cd452c2f8def11641426563432dfea25a5 Mon Sep 17 00:00:00 2001 From: Mikhail Cherkashin Date: Tue, 8 Aug 2017 19:22:34 +0300 Subject: [PATCH] Fixing build issue of fs_close.c when NFILE_DESCRIPTORS == 0 Most common problem with build fixed: in file fs_close.c an undefined variable appears when NFILE_DESCRIPTORS=0 and NSOCKET_DESCRIPTORS != 0. Change-Id: Ia7f2417a37ad3052a04c119b330b41a401de40a1 Signed-off-by: Mikhail Cherkashin --- os/fs/vfs/fs_close.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/fs/vfs/fs_close.c b/os/fs/vfs/fs_close.c index 8b26a23..ea8e099 100644 --- a/os/fs/vfs/fs_close.c +++ b/os/fs/vfs/fs_close.c @@ -98,7 +98,7 @@ int close(int fd) { int err; -#if CONFIG_NFILE_DESCRIPTORS > 0 +#if (CONFIG_NFILE_DESCRIPTORS > 0) || (CONFIG_NSOCKET_DESCRIPTORS > 0) int ret; #endif /* close() is a cancellation point */ -- 2.7.4