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

commit 97ec55db465439aec7e45288849454b8635942a9
Author: Huang Qi <[email protected]>
AuthorDate: Wed May 29 10:14:30 2024 +0800

    syscall.csv: Correct macro guard of setsockopt
    
    setsockopt only available if both NET and  NET_SOCKOPTS enabled.
    
    Signed-off-by: Huang Qi <[email protected]>
---
 syscall/syscall.csv | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syscall/syscall.csv b/syscall/syscall.csv
index adb54f8c72..8a17ba0cba 100644
--- a/syscall/syscall.csv
+++ b/syscall/syscall.csv
@@ -154,7 +154,7 @@
 "setgid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","int","gid_t"
 "sethostname","unistd.h","","int","FAR const char *","size_t"
 
"setitimer","sys/time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","int","FAR
 const struct itimerval *","FAR struct itimerval *"
-"setsockopt","sys/socket.h","defined(CONFIG_NET)","int","int","int","int","FAR 
const void *","socklen_t"
+"setsockopt","sys/socket.h","defined(CONFIG_NET) && 
defined(CONFIG_NET_SOCKOPTS)","int","int","int","int","FAR const void 
*","socklen_t"
 "settimeofday","sys/time.h","","int","FAR const struct timeval *","FAR const 
struct timezone *"
 "setuid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","int","uid_t"
 "shm_open","sys/mman.h","defined(CONFIG_FS_SHMFS)","int","FAR const char 
*","int","mode_t"

Reply via email to