Skip to content

Commit

Permalink
memfd: fix configure test
Browse files Browse the repository at this point in the history
  • Loading branch information
liaochengjie committed Mar 17, 2024
1 parent d71d696 commit ed21252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -3855,7 +3855,7 @@ fi
# check if memfd is supported
memfd=no
cat > $TMPC << EOF
#include <sys/memfd.h>
#include <sys/mman.h>
int main(void)
{
Expand Down
4 changes: 1 addition & 3 deletions util/memfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@

#include "qemu/memfd.h"

#ifdef CONFIG_MEMFD
#include <sys/memfd.h>
#elif defined CONFIG_LINUX
#if defined CONFIG_LINUX && !defined CONFIG_MEMFD
#include <sys/syscall.h>
#include <asm/unistd.h>

Expand Down

0 comments on commit ed21252

Please sign in to comment.