lib_memfd: turn a runtime error into a linker error
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
3f08f32486
commit
99eeaafd07
@ -29,6 +29,7 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(CONFIG_LIBC_MEMFD_TMPFS) || defined(CONFIG_LIBC_MEMFD_SHMFS)
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
@ -73,3 +74,4 @@ int memfd_create(FAR const char *name, unsigned int flags)
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user