diff --git a/libc/spawn/lib_psa_getstacksize.c b/libc/spawn/lib_psa_getstacksize.c index 892c922653..d6fd8978e8 100644 --- a/libc/spawn/lib_psa_getstacksize.c +++ b/libc/spawn/lib_psa_getstacksize.c @@ -75,4 +75,4 @@ int task_spawnattr_getstacksize(FAR const posix_spawnattr_t *attr, return OK; } -#endif /* CONFIG_ARCH_ADDRENV */ +#endif /* !CONFIG_ARCH_ADDRENV */ diff --git a/libc/spawn/lib_psa_setstacksize.c b/libc/spawn/lib_psa_setstacksize.c index c7d815106e..bad7627a1a 100644 --- a/libc/spawn/lib_psa_setstacksize.c +++ b/libc/spawn/lib_psa_setstacksize.c @@ -43,7 +43,7 @@ #include #include -#ifdef CONFIG_ARCH_ADDRENV +#ifndef CONFIG_ARCH_ADDRENV /**************************************************************************** * Public Functions @@ -74,4 +74,4 @@ int task_spawnattr_setstacksize(FAR posix_spawnattr_t *attr, size_t stacksize) return OK; } -#endif /* CONFIG_ARCH_ADDRENV */ +#endif /* !CONFIG_ARCH_ADDRENV */