Skip to content

Commit 51031a6

Browse files
lxc/rexec.c: fix memfd_create on less than api 30
Signed-off-by: DreamConnected <1487442471@qq.com>
1 parent 44f49a6 commit 51031a6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/lxc/rexec.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,9 @@ static void lxc_rexec_as_memfd(char **argv, char **envp, const char *memfd_name)
9696
tmpfd = -EBADF;
9797
int ret;
9898
ssize_t bytes_sent = 0;
99-
#if IS_BIONIC && __ANDROID_API__ >= 30
99+
#if IS_BIONIC
100100
off_t fd_size = -1;
101101
#else
102-
#error "memfd_create() not implemented under Android 30"
103102
struct stat st = {0};
104103
#endif
105104

0 commit comments

Comments
 (0)