system/lzf/lzf_main.c: Check the protection by CONFIG_SYSTEM_LZF != CONFIG_m (not elf binary) instead of CONFIG_KERNEL_BUILD.
This commit is contained in:
parent
598420a477
commit
e9cd27e8c3
@ -58,7 +58,7 @@
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_BUILD_KERNEL
|
||||
#if CONFIG_SYSTEM_LZF != CONFIG_m
|
||||
static sem_t g_exclsem = SEM_INITIALIZER(1);
|
||||
#endif
|
||||
|
||||
@ -78,7 +78,7 @@ static uint8_t g_buf2[MAX_BLOCKSIZE + LZF_MAX_HDR_SIZE + 16];
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_BUILD_KERNEL
|
||||
#if CONFIG_SYSTEM_LZF != 2
|
||||
static void lzf_exit(int exitcode) noreturn_function;
|
||||
static void lzf_exit(int exitcode)
|
||||
{
|
||||
@ -443,7 +443,7 @@ int lzf_main(int argc, FAR char *argv[])
|
||||
int optc;
|
||||
int ret = 0;
|
||||
|
||||
#ifndef CONFIG_BUILD_KERNEL
|
||||
#if CONFIG_SYSTEM_LZF != CONFIG_m
|
||||
/* Get exclusive access to the global variables. Global variables are
|
||||
* used because the hash table and buffers are too large to allocate on
|
||||
* the embedded stack. But the use of global variables has the downside
|
||||
|
Loading…
Reference in New Issue
Block a user