Skip to content

Commit

Permalink
lib_memfd: turn a runtime error into a linker error
Browse files Browse the repository at this point in the history
Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 committed Oct 11, 2023
1 parent 6cad7e9 commit a60aa66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/libc/misc/lib_memfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <stdio.h>
#include <unistd.h>

#if defined(CONFIG_LIBC_MEMFD_TMPFS) || defined(CONFIG_LIBC_MEMFD_SHMFS)
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
Expand Down Expand Up @@ -73,3 +74,4 @@ int memfd_create(FAR const char *name, unsigned int flags)
return ret;
#endif
}
#endif

0 comments on commit a60aa66

Please sign in to comment.