summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@nokia.com>2010-03-26 15:25:11 +0000
committerAurelien Jarno <aurelien@aurel32.net>2010-03-26 17:15:10 +0100
commitc05c7a7306a23a4b01d1606172b142c45caffc92 (patch)
tree7ceaf846d7ecf4f8b989b95481dfb6f585101e31 /configure
parentbedd2912c83b1a87a6bfe3f59a892fd65cda7084 (diff)
downloadqemu-c05c7a7306a23a4b01d1606172b142c45caffc92.zip
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index 6bc40a388d..f9e08f6999 100755
--- a/configure
+++ b/configure
@@ -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