linux-user: fix problems with inotify syscalls
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 8 Apr 2009 21:29:30 +0000 (21:29 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 8 Apr 2009 21:29:30 +0000 (21:29 +0000)
commitdbfe4c3611a613df1f87b3d6a53063f7988ae5f7
treea7a625d6b763bdf2936766265daba5a96c2dc8b6
parent0dc586b5de560a1cf67981f04ac0dcd7daef5b80
linux-user: fix problems with inotify syscalls

The sys_inotify* calls are defined if the target supports them and the
host supports the necessary syscalls.  But the syscalls are handled if
the target supports them.  This situation leads to compilation failures
when the host doesn't support the necessary syscalls, as the linker will
complain about undefined functions.

Fix this state of affairs by making the handling conditions the same as
the call definition conditions.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Acked-By: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7038 c046a42c-6fe2-441c-8c8c-71466251a162
linux-user/syscall.c