This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new a09867df8c build: Fix libc/pwd CMakeLists.txt
a09867df8c is described below

commit a09867df8cbb7d44e26302a126ae0610c341efd4
Author: Daniel Jasinski <[email protected]>
AuthorDate: Tue Aug 6 14:38:38 2024 -0400

    build: Fix libc/pwd CMakeLists.txt
    
    This commit fixes erronous assignment of lib_pwd_globals.c
    previously guarded by CONFIG_LIBC_PASSWD_FILE. Original
    Make.defs file has this in CSRCS scope.
    
    Signed-off-by: Daniel Jasinski <[email protected]>
---
 libs/libc/pwd/CMakeLists.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libs/libc/pwd/CMakeLists.txt b/libs/libc/pwd/CMakeLists.txt
index 4225523d6d..e1639684b1 100644
--- a/libs/libc/pwd/CMakeLists.txt
+++ b/libs/libc/pwd/CMakeLists.txt
@@ -17,10 +17,12 @@
 # the License.
 #
 # 
##############################################################################
-set(SRCS lib_getpwnam.c lib_getpwnamr.c lib_getpwuid.c lib_getpwuidr.c)
+
+set(SRCS lib_getpwnam.c lib_getpwnamr.c lib_getpwuid.c lib_getpwuidr.c
+         lib_pwd_globals.c)
 
 if(CONFIG_LIBC_PASSWD_FILE)
-  list(APPEND SRCS lib_find_pwdfile.c lib_pwd_globals.c)
+  list(APPEND SRCS lib_find_pwdfile.c)
 else()
   list(APPEND SRCS lib_getpwbuf.c lib_getpwbufr.c)
 endif()

Reply via email to