From 7154fc09ffc9a986970d8537e74a09a02f5dace4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 7 Oct 2017 07:46:42 -0600 Subject: [PATCH] syscall/: Fix some backward conditional compilation --- include/sys/syscall.h | 2 +- syscall/syscall_lookup.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sys/syscall.h b/include/sys/syscall.h index b468fdd3e1..8e6bd75941 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -302,7 +302,7 @@ # else # define __SYS_termios __SYS_poll # endif -# ifndef CONFIG_SERIAL_TERMIOS +# ifdef CONFIG_SERIAL_TERMIOS # define SYS_tcdrain __SYS_termios # define __SYS_boardctl (__SYS_termios+1) # else diff --git a/syscall/syscall_lookup.h b/syscall/syscall_lookup.h index 6c6ce0dab7..7153313de4 100644 --- a/syscall/syscall_lookup.h +++ b/syscall/syscall_lookup.h @@ -211,7 +211,7 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert) SYSCALL_LOOKUP(poll, 3, STUB_poll) SYSCALL_LOOKUP(select, 5, STUB_select) # endif -# ifndef CONFIG_SERIAL_TERMIOS +# ifdef CONFIG_SERIAL_TERMIOS SYSCALL_LOOKUP(tcdrain, 1, STUB_tcdrain) # endif #endif