From 97ec55db465439aec7e45288849454b8635942a9 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Wed, 29 May 2024 10:14:30 +0800 Subject: [PATCH] syscall.csv: Correct macro guard of setsockopt setsockopt only available if both NET and NET_SOCKOPTS enabled. Signed-off-by: Huang Qi --- 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"