You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/05/25 06:37:27 UTC
[incubator-nuttx] branch master updated:
include/sys/syscall_lookup.h: Fix table for nx_mkfifo
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 49409b5 include/sys/syscall_lookup.h: Fix table for nx_mkfifo
49409b5 is described below
commit 49409b516cf8f8da0d7215835e7c5ed14477dd4f
Author: Jukka Laitinen <ju...@ssrc.tii.ae>
AuthorDate: Wed Dec 30 16:07:19 2020 +0200
include/sys/syscall_lookup.h: Fix table for nx_mkfifo
Fix compilation when CONFIG_DEV_PIPE_SIZE > 0 && CONFIG_DEV_FIFO_SIZE == 0
In this case the nx_mkfifo doesn't exist.
Signed-off-by: Jukka Laitinen <ju...@ssrc.tii.ae>
---
include/sys/syscall_lookup.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/sys/syscall_lookup.h b/include/sys/syscall_lookup.h
index 2314908..962f922 100644
--- a/include/sys/syscall_lookup.h
+++ b/include/sys/syscall_lookup.h
@@ -261,6 +261,9 @@ SYSCALL_LOOKUP(telldir, 1)
#if defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0
SYSCALL_LOOKUP(nx_pipe, 3)
+#endif
+
+#if defined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0
SYSCALL_LOOKUP(nx_mkfifo, 3)
#endif