mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
linux-user: add inotify_init1 syscall support
New syscall which gets actively used when you have a fresh kernel. Signed-off-by: Riku Voipio <riku.voipio@nokia.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
bedd2912c8
commit
c05c7a7306
2 changed files with 32 additions and 0 deletions
18
configure
vendored
18
configure
vendored
|
@ -1629,6 +1629,21 @@ if compile_prog "" "" ; then
|
|||
inotify=yes
|
||||
fi
|
||||
|
||||
inotify1=no
|
||||
cat > $TMPC << EOF
|
||||
#include <sys/inotify.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
/* try to start inotify */
|
||||
return inotify_init1(0);
|
||||
}
|
||||
EOF
|
||||
if compile_prog "" "" ; then
|
||||
inotify1=yes
|
||||
fi
|
||||
|
||||
# check if utimensat and futimens are supported
|
||||
utimens=no
|
||||
cat > $TMPC << EOF
|
||||
|
@ -2136,6 +2151,9 @@ fi
|
|||
if test "$inotify" = "yes" ; then
|
||||
echo "CONFIG_INOTIFY=y" >> $config_host_mak
|
||||
fi
|
||||
if test "$inotify1" = "yes" ; then
|
||||
echo "CONFIG_INOTIFY1=y" >> $config_host_mak
|
||||
fi
|
||||
if test "$byteswap_h" = "yes" ; then
|
||||
echo "CONFIG_BYTESWAP_H=y" >> $config_host_mak
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue