From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Purdie Date: Wed, 26 Jul 2006 21:10:22 +0000 Subject: [PATCH] Fix inotify syscalls on ARM Message-Id: <1153948222.10683.7.camel@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org This patch fixes the inotify syscalls on ARM so they work. It uses __NR_SYSCALL_BASE from the libc headers (via sys/syscall.h) as this value depends on which ABI you're using and trying to work that out gets complicated. Signed-off-by: Richard Purdie Index: udev-092/udev_libc_wrapper.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D--- udev-092.orig/udev_libc_wrapper.h 2006-07-26 21= :55:06.000000000 +0100 +++ udev-092/udev_libc_wrapper.h 2006-07-26 21:55:37.000000000 +0100 @@ -58,9 +58,9 @@ # define __NR_inotify_add_watch 152 # define __NR_inotify_rm_watch 156 #elif defined (__arm__) -# define __NR_inotify_init 316 -# define __NR_inotify_add_watch 317 -# define __NR_inotify_rm_watch 318 +# define __NR_inotify_init __NR_SYSCALL_BASE+316 +# define __NR_inotify_add_watch __NR_SYSCALL_BASE+317 +# define __NR_inotify_rm_watch __NR_SYSCALL_BASE+318 #elif defined (__sh__) # define __NR_inotify_init 290 # define __NR_inotify_add_watch 291 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel