Bruce Dubbs wrote:
> Basically Petr's approach is to remove the following lines:
> 
> static inline int inotify_init (void)
> {
>    return syscall (__NR_inotify_init);
> }
> 
> static inline int inotify_add_watch (int fd, const char *name, __u32 mask)
> {
>    return syscall (__NR_inotify_add_watch, fd, name, mask);
> }
> 
> static inline int inotify_rm_watch (int fd, __u32 wd)
> {
>    return syscall (__NR_inotify_rm_watch, fd, wd);
> }
> 
> and replace #include <linux/inotify.h> with #include <sys/inotify.h>
> where the above calls are defined. The functions are found in 
> /lib/libc-2.8.so.

Yes, that's the correct approach. Such inline functions were added to 
programs in times where the kernel supported inotify, but glibc didn't.


-- 
Alexander E. Patrakov
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to