lib_memfd: turn a runtime error into a linker error

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2023-10-08 14:52:51 +08:00 committed by Xiang Xiao
parent 3f08f32486
commit 99eeaafd07

View File

@ -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