inotify patch

Joseph S. Myers joseph at codesourcery.com
Wed Jun 21 10:31:26 UTC 2006


On Wed, 21 Jun 2006, Mike Frysinger wrote:

> so if a package does something like
> AC_CHECK_FUNC(inotify_func)
> AC_CHECK_FUNC(dnotify_func)
> #ifdef HAS_INOTIFY
>  < does inotify stuff >
> #elif HAS_DNOTIFY
>  < does dnoitfy stuff >
> #else
>  < does something else
> #endif
> 
> and our uClibc has inotify stubbed to an ENOSYS, crappy applications will 
> think inotify support is actually implemented (because the symbol exists) and 
> disable code that would otherwise work

This is why glibc has <gnu/stubs.h> (included from <features.h>), 
generated at glibc build time.  autoconf checks the __stub_* defines.

-- 
Joseph S. Myers
joseph at codesourcery.com



More information about the uClibc mailing list